open aspx page popup window using asp.net c#(onclick event)

protected void showBtn_Click(object sender, EventArgs e)
    {
        string url = "../Admin/DuctorPrescriptionDetails.aspx";
        string s = "window.open('" + url + "', 'popup_window', 'width=1200,height=500,left=100,top=100,resizable=no');";
        ClientScript.RegisterStartupScript(this.GetType(), "script", s, true);

    }

Comments

Popular posts from this blog

Create Schema Using C# Asp .Net Dynamically.

How to post image in blob using Windows Azure.

Create your own captcha image generator in asp.net using c#.net