additional HyperLinkColumn querystring values

Discussion in 'ASP .Net Web Controls' started by Jimbo Jim, Sep 28, 2005.

  1. Jimbo Jim

    Jimbo Jim Guest

    Hello,
    I wish to be able to add more querystring values to a HyperLinkColumn.
    Sample Datagrid:
    <asp:DataGrid id="DataGrid1" AutoGenerateColumns="False" runat="server">
    <Columns>
    <asp:HyperLinkColumn HeaderText="ID" DataNavigateUrlField="ID"
    DataNavigateUrlFormatString="link.aspx?id={0}"
    DataTextField="ID"></asp:HyperLinkColumn>
    </Columns>
    </asp:DataGrid>

    I need to be able to add to the DataNavigateUrlFormatString
    ie:
    DataNavigateUrlFormatString="link.aspx?id={0}&OtherVar=" &
    request.querystring("OtherVar")

    Is this possible?
    Jimbo Jim, Sep 28, 2005
    #1
    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. vtreddy
    Replies:
    0
    Views:
    2,061
    vtreddy
    Nov 6, 2003
  2. TJS
    Replies:
    2
    Views:
    2,257
  3. Hazzard
    Replies:
    1
    Views:
    466
    Hazzard
    Apr 2, 2004
  4. Davef

    Pass 2 values in the HyperLinkColumn

    Davef, Jul 30, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    116
    Davef
    Jul 30, 2003
  5. Replies:
    1
    Views:
    1,100
    Teemu Keiski
    May 12, 2007
Loading...

Share This Page