We help IT Professionals succeed at work.

problem window alert java c# web form

tenriquez39
tenriquez39 asked
on
1,480 Views
Last Modified: 2013-12-17
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"].ToString();
        x = ClaseValAcc.myGlobalFunction("CatAplis", VUsus);
        if (!Page.IsPostBack)
        {
            if (x == "")
            {
                Response.Write("<script>window.alert('Acceso no permitido')</script>");
                Response.Redirect("Menu.aspx");
            }
        }
    }
Comment
Watch Question

Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
tenriquez39Engenier

Author

Commented:
wonderfull you are great thanks allot
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.