Open Webform..?

  • Thread starter Thread starter Kent Johnson
  • Start date Start date
K

Kent Johnson

Hi all,

How can I open a second Webform from the first Webform with a Button_onlick
event?

/Kent J.
 
void Button1_Click(object src,EventArgs e){
System.Text.StringBuilder sb=new System.Text.StringBuilder(400);
sb.Append("<script Language=\"Javascript\">");
sb.Append("window.open(\"mypage.aspx\")");
sb.Append("<").Append("/").Append("script>");
if(!Page.IsClientScriptRegistered("myscript"))
Page.RegisterClientScript("myscript",sb.ToString());
}

This will open the link in a new window!!Hope it helps!Thanks
 
void Button1_Click(object src,EventArgs e){
System.Text.StringBuilder sb=new System.Text.StringBuilder(400);
sb.Append("<script Language=\"Javascript\">");
sb.Append("window.open(\"mypage.aspx\")");
sb.Append("<").Append("/").Append("script>");
if(!Page.IsClientScriptRegistered("myscript"))
Page.RegisterClientScript("myscript",sb.ToString());
}

This will open the link in a new window!!Hope it helps!Thanks
 
Back
Top