Multiple Parameters With Hyperlink in DataGrid

Discussion in 'ASP .Net Web Controls' started by eRic, Jul 10, 2003.

  1. eRic

    eRic Guest

    I have a datagrid with a hyperlinkcontrol column. And it will only take one
    parameter. So I created a template column, with a hyperlink based on an
    example I saw. (now working directly in the aspx page as opposed to the code
    behind) It uses the NavigateURL and then useses
    Container.DataItem("itemName") to set the item values inline (so
    'someUrl.com?item=.' + Container.DataItem("itemName") ) First off I'm doing
    this in C# so I changed the call to Container.DataItem["itemName"]. Now it
    throwsa HTML excepetion because the "object" cannot be index. any
    suggestions on how to do this. I have tried casting the container but to no
    avail.

    My overall goal is to pass 2 parameters in a query string of a hyperlink
    that is embeded in a datagrid. :)

    THANKS!!
    eRic
     
    eRic, Jul 10, 2003
    #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. =?Utf-8?B?R3JlZyBSZXlub2xkcw==?=

    How to pass multiple hyperlink parameters with datagrid

    =?Utf-8?B?R3JlZyBSZXlub2xkcw==?=, Oct 20, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    4,606
    Shiva
    Oct 20, 2004
  2. LB
    Replies:
    1
    Views:
    1,179
    Patrick Olurotimi Ige
    Apr 1, 2005
  3. davetichenor
    Replies:
    1
    Views:
    856
    Eliyahu Goldin
    Oct 30, 2006
  4. eRic

    Multiple Parameters With Hyperlink in DataGrid

    eRic, Jul 10, 2003, in forum: ASP .Net Building Controls
    Replies:
    5
    Views:
    190
    Eric Adler
    Jul 19, 2003
  5. LB

    multiple parameters for a datagrid url hyperlink

    LB, Mar 31, 2005, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    125
Loading...

Share This Page