- Take two forms
- Put one button in one form.
- Write these coding into button click event
{
OpenNewWindow("Default2.aspx");
}
// This is function that is called when button is clicked
public void OpenNewWindow(string url)
{
ClientScript.RegisterStartupScript(this.GetType(), "newWindow", String.Format("", url));
}