Friday, January 16, 2009

Open a popup Window from C# code behind asp.net 2.0

open a popup window from C# code behind

Sample:

    protected void LinkButton1_Click(object sender, EventArgs e)
    {
        //File Receiveed/Assign to Processor
        string url = "uplfile.aspx?strtxt=File Receiveed/Assign to Processor&caseno=" + Request["caseno"];
        ClientScript.RegisterStartupScript(this.GetType(), "newWindow", String.Format("<script>window.open('{0}');</script>", url));
        
        //Response.Redirect("uplfile.aspx?strtxt=File Receiveed/Assign to Processor&caseno=" + Request["caseno"]);


    }
        

1 comment:

Unknown said...

Thank you for your post.

This is a great way to learn Visual Studio.NET. Learn by watching premium and FREE .Net tutorial videos.

http://www.LearningVisualStudio.info