Click here to Skip to main content
15,895,423 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
There is one modalpopup exists on index.aspx page and its working fine.
Is that possible when click a button on other page (say about.aspx) it will redirect to index page and open the modal popup?

Please share your opinion.
Thanks in advance.
Posted

yes, you can do ..

In the button click of the page you write this

C#
protected void Button1_Click(object sender, EventArgs e)
        {
            Response.Redirect("Index.aspx");

        }


and in the page load of the index.aspx page you can call the show function explicitly as


C#
protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {

                ModalPopupExtender1.Show();
            }
        }


reference: ModalPopupExtender from Server Side Code[^]
 
Share this answer
 
Hi...
Can u try this ..
C#
Page.ClientScript.RegisterClientScriptBlock(Page.GetType(), "test", "window.open('Homepage.aspx','maximize=true,top=0,left=0,height=1000px,width=1350px,status=no,resizable=yes,toolbar=no,menubar=no,location=yes,fullscreen=false, scrollbars=no,conductengine=no,url=no,Addressbar:disable=yes' );", true);

Thank u.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900