tenriquez39
asked on
problem window alert java c# web form
i have a code in .net c# . it is to show a message box type, and redirect navegation to other web form (my project is with web forms) i have next code, but it don't show the message . It go directly to menu.asxc form i test...if i commente second line (response.redirect) the message is correct, and show me in the scrren but if ...two lines active don't show me teh message: her the code:
protected void Page_Load(object sender, EventArgs e)
{
string VUsus,x;
VUsus = Session["Usuario"].ToStrin g();
x = ClaseValAcc.myGlobalFuncti on("CatApl is", VUsus);
if (!Page.IsPostBack)
{
if (x == "")
{
Response.Write("<script>wi ndow.alert ('Acceso no permitido')</script>");
Response.Redirect("Menu.as px");
}
}
}
protected void Page_Load(object sender, EventArgs e)
{
string VUsus,x;
VUsus = Session["Usuario"].ToStrin
x = ClaseValAcc.myGlobalFuncti
if (!Page.IsPostBack)
{
if (x == "")
{
Response.Write("<script>wi
Response.Redirect("Menu.as
}
}
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER