Opening a new window from a hyperlink in an ItemTemplate column
-
I need to open a page in a new window when a hyperlink is clicked in a data grid? Here's my code as of now:
-
I need to open a page in a new window when a hyperlink is clicked in a data grid? Here's my code as of now:
You need to add a
target
attribute to yourasp:Hyperlink
element, and set it to"_blank"
e.g.<asp:HyperLink runat="server" target="_blank"
Text="Copy & Create" CausesValidation="False" NavigateUrl='<%# "fldCopyCreate.aspx?fldID=" &
Container.DataItem("Field_ID") & "&tblID=" & Container.DataItem("Table_ID") & "&fldLogiName=" &
Container.DataItem("Logical_Name") %>' />See HyperLink.Target Property[^] on MSDN
Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.