menu control refresh page

In ASP.NET 2.0 I have a master page with menu control.
when the user choose an option in the menu it goes to one of the content pages of the placeholder.
The problem is that pressing the menu control refresh the whole page.
I thought of putting in in Iframe but I already have everything in master or content pages and I don't
know how the ifrmae will get into it?
Any suggestion? so that the menu will not refresh the master page?
ANAT2403Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Irwin SantosComputer Integration SpecialistCommented:
put the refresh in the subpage(target)
Darth_helgeCommented:
maybe i dont understand but my menu control does not refresh the page

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body style="height: 100%">
    <form id="form1" runat="server">
<asp:menu ID="Menu1" runat="server">
<Items>
<asp:MenuItem Target="MyFrame"  NavigateUrl="http://www.break.com" Text="Click ME!"></asp:MenuItem>
</Items>
</asp:menu>        

<iframe id="MyFrame" name="MyFrame" height="200" width="400"></iframe>
    </form>
</body>
</html>
ANAT2403Author Commented:
to irwinpks:
I don't put any refresh its automatic   . How you want me to make the refresh?

to Darth helge:
I took you kod added some more menu items and some are refresh but yours not. But still I don't understand
why some do refresh?

<%@ Page Language="C#" AutoEventWireup="false" CodeFile="Default9.aspx.cs" Inherits="Default9" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Untitled Page</title>
</head>
<body style="height: 100%">
    <form id="form2" runat="server">
<asp:menu ID="Menu1" runat="server" Orientation="Horizontal">
<Items>
<asp:MenuItem Target="MyFrame"  NavigateUrl="http://www.break.com" Text="Click ME!" Value="Click ME!"></asp:MenuItem>
    <asp:MenuItem   Text="item2" Value="item2"></asp:MenuItem>
    <asp:MenuItem   Text="item3" Value="item3"></asp:MenuItem>
</Items>
</asp:menu>        

<iframe id="MyFrame" name="MyFrame" height="200" width="400"></iframe>
 
  <asp:Label ID="Label1" runat="server" Style="z-index: 100; left: 544px; position: absolute;
            top: 64px" Text="Label" Width="72px"></asp:Label>
        <asp:Label ID="Label2" runat="server" Style="z-index: 101; left: 616px; position: absolute;
            top: 184px" Text="Label" Width="80px"></asp:Label>
        <asp:Label ID="Label3" runat="server" Style="z-index: 103; left: 528px; position: absolute;
            top: 288px" Text="Label" Width="120px"></asp:Label>      
    </form>
</body>
</html>
OWASP: Threats Fundamentals

Learn the top ten threats that are present in modern web-application development and how to protect your business from them.

Darth_helgeCommented:
you have to add the navigateURL on all of the menuitems
ANAT2403Author Commented:
As I wrote at the beginning of the question I am not using Iframe but a master page and content and there
I have navigateurl in the code behind and it goes to a panel in the content page. Maby my problem is
specific to the situation of Master page.do you know about that?
Darth_helgeCommented:
The content placed on your master page will of course get reloaded when you navigate to another .aspx page which has the current MasterPage. You cannot prevent the master page content to be reloaded except using frames or AJAX/Javascript

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.