asp.net - How to Open a page from one frame in another -


i using 4 frames in aspx page.the top frame banner frame,the menu frame,the content frame , footer frame.

the menu frame loads menu.aspx page.this page contains menu control.i have added items in menu.

what want when click menu item in menu frame,i want page loaded in content frame.

how can it?

this default.aspx page uses 4 frames

<html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>untitled page</title>  </head> <frameset rows="20%,80%,20%" frameborder="0"> <frame name="banner" src="a.htm"></frame>     <frameset cols="20%,80%">         <frame name="menu" src="menu.aspx"></frame>         <frame name="content" src="d.htm"></frame>     </frameset> <frame name="footer" src="b.htm"></frame> 

this menu.aspx page

<html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>untitled page</title> </head> <body> <form id="form1" runat="server"> <div>     <asp:menu id="menu1" runat="server" backcolor="#fffbd6" dynamichorizontaloffset="2"      font-names="verdana" font-size="15px" forecolor="#990000" staticsubmenuindent="10px" height="300px">         <staticselectedstyle backcolor="#ffcc66"  />         <staticmenuitemstyle horizontalpadding="5px" />         <dynamichoverstyle backcolor="#990000" forecolor="white" />         <dynamicmenustyle backcolor="#fffbd6"  />         <dynamicselectedstyle backcolor="#ffcc66" />         <dynamicmenuitemstyle horizontalpadding="5px" verticalpadding="10px" font-size="15px" />         <statichoverstyle backcolor="#990000" forecolor="white" />         <items>             <asp:menuitem text="home.aspx" value="home.aspx" navigateurl="~/home.aspx"></asp:menuitem>             <asp:menuitem text="administration" value="administration" navigateurl="~/administration.aspx">                 <asp:menuitem text="add user" value="add user" navigateurl="~/adduser.aspx"></asp:menuitem>                 <asp:menuitem text="add organization" value="add organization" navigateurl="~/addorganization.aspx"></asp:menuitem>                 <asp:menuitem text="add program" value="add program" navigateurl="~/addprogram.aspx"></asp:menuitem>                 <asp:menuitem text="add activity" value="add activity" navigateurl="~/addactivity.aspx"></asp:menuitem>             </asp:menuitem>             <asp:menuitem text="search" value="search" navigateurl="~/search.aspx"></asp:menuitem>             <asp:menuitem text="utilities" value="utilities" navigateurl="~/utilities.aspx"></asp:menuitem>             <asp:menuitem text="contact us" value="contact us" navigateurl="~/contact.aspx"></asp:menuitem>         </items>     </asp:menu> </div> </form> 

this weired , inefficient way making website. never implement on production server.

1 step - encapsulate iframes in seperate update panel.

2 step - add timer control in updatepanel minimum refresh rate comformable with.

3 step. logic smthing this, when ever link clicked menu iframe set session variable required parameter session["togo"] = "blabla.aspx"

4 step in timer tick event check session if found reload iframe value specified. set session["togo"] null.


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -