Click here to Skip to main content
15,896,376 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi frds,

I have a menu item which contains list of menu items navigating to different page for each item. I used Update but the page get refreshing when i click on menu item.Please let me know , is there any alternative solution for it.


Regards,
B.Laxman.
Posted
Comments
devbtl 5-Jan-12 11:30am    
put some piece of code here.

1 solution

Hi,

Instead of using master pages, maybe you can create one default page and then place an updatepanel and a placeholder.

Like this:
ASP.NET
<asp:updatepanel runat="server" xmlns:asp="#unknown">
    <contenttemplate>
        <asp:placeholder runat="server" id="placeHolder1" />
    </contenttemplate>
</asp:updatepanel>


And then create each page represented in the menu as a Web user controls and inject it when the menu item is clicked.

C#
placeHolder1.Controls.Add(new MyWebUserControls());


Make sure the updatepanel update mode is correct and the menu triggers an async operation which will update the updatepanel with the new web user control.. :-)

Regards
Joachim
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900