Saturday, March 24, 2012

What is the best way to open a page in a new window in ASP.NET 2.0?

Currently I am passing a value to another page when I click on theimage in the code below. But it opens the new page in the samewindow. How do I make it open the page in a new browser window?
<a href='<%# DataBinder.Eval(Container.DataItem, "info_id", "SearchDetails.aspx?info_id={0}") %>' >
<img border="0" src="http://pics.10026.com/?src=datepicker.gif" >
</a>

Add the target=_blank or target=_new attribute to the <a> tag.
-Brock

thanks!

0 comments:

Post a Comment