开发者

Can I create a User Control that is just a panel that I can insert to an ASP page when a button is clicked?

开发者 https://www.devze.com 2023-03-15 21:17 出处:网络
I am relatively new to ASP.NET so I do not know the usual practice for this kind of operation so please bear with me.

I am relatively new to ASP.NET so I do not know the usual practice for this kind of operation so please bear with me.

What I have at the moment Is an ASPX page that has an UpdatePanel on it with multiple Panels inside it. Every time the user clicks a button from the navigation menu (which is in another Update Panel on its own) The Panel that relates to the button is set to visible. So for every time the user clicks on of the buttons I need to hide all other开发者_如何学编程 panels and set that particular one to visible.

I am hoping there is a better way of achieving this as I can see it getting very messy quite quickly.

Any advice would be appreciated.

Thanks.


Is this what you want?

CollapsiblePanel : http://www.asp.net/AJAX/AjaxControlToolkit/Samples/CollapsiblePanel/CollapsiblePanel.aspx Accordion : http://www.asp.net/AJAX/AjaxControlToolkit/Samples/Accordion/Accordion.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消