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.
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

PHANI NADIGADDA51 reputationPosted Dec 14, 2006, 6:42 AM EST
ImageButton1.Attributes.Add("onClick", "window.open('WebForm2.aspx');event.returnValue = false;");
ALL THE BEST
shiva5 reputationPosted Dec 20, 2006, 11:01 PM EST
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
Jim Van Dick16 reputationPosted Dec 21, 2006, 8:07 AM EST
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.