Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1910
Hyperlink that opens new window with no back button, no toolbars, etc.
posted

I have a WebDataGrid that has a template field in it that is set so when the user clicks on the hyperlink, a new window opens and displays the info I want displayed. This is how it looks so far:

<ig:TemplateDataField Key="Row_ID_Hyperlink" Width="5%">
  <ItemTemplate>
   
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("URL") %>' Text='<%# Eval("Row_ID_Hyperlink") %>' Target="_blank">
    </asp:HyperLink>
  </ItemTemplate>
  <Header Text="Row ID" />
</ig:TemplateDataField>

When the window opens, it opens with the back button, toolbars and everything else at the top. I really just want it to be more like a popup window.

Any suggestions on how I can get this to work?

  • 1910
    Verified Answer
    Offline posted

    I figured it out:

    <
    ig:TemplateDataField Key="Row_ID_Hyperlink" Width
    ="5%">
      <ItemTemplate
    >
       
    <asp:HyperLink ID="HyperLink1" runat="server" Font-Underline="True" ForeColor="Blue" NavigateUrl=<%# String.Format("BLOCKED SCRIPTvoid(window.open('Change_History.aspx?Table_Name=tblAIM_Settings&Key_Value=" & Eval("Row_ID") & "','_blank','width=800,height=600,toolbar=no,status=yes,scrollbars=yes,resizable=no'))", Eval("Row_ID")) %> Text='<%# Bind("Row_ID") %>'></asp:HyperLink>
      </ItemTemplate>
      <Header Text="Row ID"
    />
    </ig:TemplateDataField
    >