I have a user control called InsightIntegMenu.ascx
here is the Code
Control Language="C#" AutoEventWireup="true" CodeFile="InsightIntegMenu.ascx.cs" Inherits="InsightIntegMenu" %>
<asp:Menu ID="Menu1" runat="server" Height="110px" BackColor="#ffffff" DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="10" Font-Bold="true" ForeColor="#FFFFFF" StaticSubMenuIndent="10px" StaticSelectedStyle-ItemSpacing="2px" >
<Items>
<asp:MenuItem Text="Status Report" NavigateUrl="~/StatusReport.aspx" Value="StatusReport"></asp:MenuItem>
</Items>
</asp:Menu>
now In My ASPX Page I Have This Part Of the Code
<%@ Register TagPrefix="Menu" TagName="InsigtMenu" Src="~/InsightIntegMenu.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<form id="form1" runat="server">
<table cellpadding="0" cellspacing="0" width="800px" style="HEIGHT: 100%" border="0" align="center">
<tr valign="top">
<td style="WIDTH: 20%; height:100%" align="left"><Menu:InsigtMenu runat="server" ID="insightMenu" ></td>
<td>asp:LinkButton runat="server" ID="lnkNew" Text="New" Font-Bold="true" Font-Size="13px" Font-Underline="false" ForeColor="#FFFFFF" OnClick="lnkNew_Click"></asp:LinkButton></td>
</table>
</asp:Panel>
.....and more Code
NOW HERE IS THE PROBLEM
I have an alert for a button click
string strMessage = "The data was saved.";
//finishes server processing, returns to client.
string strScript = "<script language=JavaScript>";
strScript += "alert('" + strMessage + "' )";
strScript += "</script>";
Page.RegisterStartupScript("clientScript", strScript);
this alert works fine all the time, However if the user control is a .net menu the Page will Disappear (the alert will come up first then when you hit Ok on the alert you go back to the parent Page) why is going on? i spent a lot of time on this please help me..THIS PNLY HAPPEN IF THE USER CONTROL IS A MENU