How to open a page in new browser using C#.net ???
I want to open my next page (code in written on imagebutton_click event) web page in new window, using C#.net........ and the original page should work as it is. Since "open in new window" option is also not visible for IMAGE BUTTON.
Jim Van DickPosted Dec 21, 2006, 1:07 PM
string urlString = "PhaseDetail.aspx?PhaseId=0&ProjectId="+ Convert.ToString(TheProjectDetails.TheId)+"&TableOrigin="+ Convert.ToString(TheProjectDetails.TableOrigin);
Response.Redirect(urlString,
true);In order to create a new window, I believe you need to set a property on the form to tell it to open in a new window. I cant remember exactly what that was. The code above actually opens the new page in the same IE instance.
Good luck.
shivaPosted Dec 21, 2006, 4:01 AM
I want to open my next page (code in written on button_click event) web page in new window, using C#.net........ and the original page should work as it is. Since "open in new window" .
Button2.Attributes.Add("onClick", "window.open('http://asp.net');event.returnValue = true;");
it workinf fine but for the second click its ok. but i must work for ist click
PHANI NADIGADDAPosted Dec 14, 2006, 11:42 AM
ImageButton1.Attributes.Add("onClick", "window.open('WebForm2.aspx');event.returnValue = false;");
ALL THE BEST