Hyperlink with Javascript

Discussion in 'ASP .Net Datagrid Control' started by spp, May 16, 2006.

  1. spp

    spp Guest

    I have a datagrid with a hyperlink column.
    The code is :
    <asp:HyperLinkField DataNavigateUrlFields="ccod"
    DataNavigateUrlFormatString=var
    newwin=window.open('serii.aspx?cod={0}',null,'width=692,height=25');"
    HeaderText="Serii" Text="Serii">
    <ItemStyle Width="5%" />
    </asp:HyperLinkField>
    but it's not working.
    I haven't a hyperlink with this code it's just a simple text.
    I want to have the details of a row from a datagrid in a popup window with
    another grid, not on another page.
    How can I solve that ?
    P.S.
    I hope this is a managed newsgroup.
    --
    Sorin Sandu
    Romania
     
    spp, May 16, 2006
    #1
    1. Advertising

  2. I'm not real familiar with the DataGrid Control, but it looks like you are
    forgetting the opening " before var in the value for
    DataNavigateUrlFormatString. Whether this is the only problem, I can't say,
    but it could be a part of it.
    --
    Nathan Sokalski

    http://www.nathansokalski.com/

    "spp" <> wrote in message
    news:...
    >I have a datagrid with a hyperlink column.
    > The code is :
    > <asp:HyperLinkField DataNavigateUrlFields="ccod"
    > DataNavigateUrlFormatString=var
    > newwin=window.open('serii.aspx?cod={0}',null,'width=692,height=25');"
    > HeaderText="Serii" Text="Serii">
    > <ItemStyle Width="5%" />
    > </asp:HyperLinkField>
    > but it's not working.
    > I haven't a hyperlink with this code it's just a simple text.
    > I want to have the details of a row from a datagrid in a popup window with
    > another grid, not on another page.
    > How can I solve that ?
    > P.S.
    > I hope this is a managed newsgroup.
    > --
    > Sorin Sandu
    > Romania
     
    Nathan Sokalski, Jun 1, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dan
    Replies:
    8
    Views:
    8,368
  2. Axel Dahmen

    Can't create fragment/JavaScript hyperlink

    Axel Dahmen, Feb 4, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    496
    Yunus Emre ALPĂ–ZEN
    Feb 4, 2005
  3. davetichenor
    Replies:
    1
    Views:
    907
    Eliyahu Goldin
    Oct 30, 2006
  4. Ken
    Replies:
    1
    Views:
    426
    Alvin Bruney
    Aug 16, 2003
  5. Dave
    Replies:
    0
    Views:
    997
Loading...

Share This Page