Results 1 to 2 of 2

Thread: Use Hyperlink Field to open window with JavaScript

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2005
    Posts
    259

    Use Hyperlink Field to open window with JavaScript

    I am trying to open up a pop up window when a link is clicked from my datagrid view. I was able to do this with the 1.1 datagrid but cannot get it to work with the new datagridview.

    I have tried this tens of different ways and still can't get it to work. This is how my last unsuccessful try looks
    VB Code:
    1. <asp:HyperlinkField
    2. DataTextField ="ueStore"
    3. DataNavigateUrlFormatString="javascript:var ..(cont on next line)..
    4. w=window.open('store_info.aspx?store={0}','','width=400,height=400');" />

    Any ideas of how to accomplish this?

  2. #2
    Member EricDalnas's Avatar
    Join Date
    Sep 2004
    Location
    Rhode Island
    Posts
    51

    Re: Use Hyperlink Field to open window with JavaScript

    <asp:HyperLink ID="newWindow" Runat="server" NavigateUrl="javascript:w=window.open(store={0}','','width=400,height=400');" >new Window</asp:HyperLink>
    Maybe if you'd stop breathing and die for a change I wouldn't be so pissed off all the time.

    www.mredkj.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width