Wednesday, 11 July 2012

Response.Redirect to open a new browser window ASP.Net


In order to use the Response.Redirect to open a link in new browser, it's so simple you just need to add small change to your ImageButton or LinkButton on ClientClick event like that



                            CausesValidation="false" OnClick="lnkInsurance_Click" OnClientClick="aspnetForm.target ='_blank';">

the code in OnClientClick event does it for you.



Hope it's helpful for you