if you need to do a postback from your first page then indeed you have to inject some javascript to open it up in a new window with the clientscriptmanager registerstartupscript method.
On the other hand if you don't need to do a postback first you can simply use a hyperlink control and set the
Target property to _blank.
Response.Redirect is a method to let the browser know that it should navigate to an new provided url.
Grz, Kris.
Read my blog | Twitter Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
XIII
All-Star
182674 Points
23445 Posts
ASPInsiders
Moderator
MVP
Re: Open new Window Without using Javascript
Apr 02, 2009 07:51 PM|LINK
Hi,
if you need to do a postback from your first page then indeed you have to inject some javascript to open it up in a new window with the clientscriptmanager registerstartupscript method.
On the other hand if you don't need to do a postback first you can simply use a hyperlink control and set the Target property to _blank.
Response.Redirect is a method to let the browser know that it should navigate to an new provided url.
Grz, Kris.
Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!