I have a gridview in which I have a column and opening a page through query string. The Column code is here:
<asp:HyperLinkField DataNavigateUrlFields="LCNumber" Target="_blank"
DataNavigateUrlFormatString="LCDocs.aspx?LCNumber={0}"
Text="View" >
<ItemStyle Font-Names="Tahoma" Font-Size="8pt" />
</asp:HyperLinkField>
The problem is that I when click on view, it opens the new tab while I have to open a new window with custom height and width with custom position. What is the solution to do this?
You can use a
<a>tag instead of<asp:hyperlink>and replace your hyperlink like below.If you want to change
{0}, you can change it via code behind.