开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜