Multiple elements within a datagrid querystring

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Carl Howarth

    #1

    Multiple elements within a datagrid querystring

    Hi,

    I need to bind data to a datagrid and have a custom hyperlink column that
    has multiple elements in the querystring:

    Page.aspx?1=Hel lo&2=Goodbye.. .

    The query string needs to be populated from different values in the
    database. How can I therefore allow for this in the template rather than
    having to create a custom field in my stored procedure as the following will
    not work!:

    NavigateUrl='Se lectCriteria.as px?Database=<%# DataBinder.Eval (Container,
    "DataItem.lsID" ) %>&Table=<%# DataBinder.Eval (Container, "DataItem.tblID ")
    %>&QueryID=<%# DataBinder.Eval (Container, "DataItem.Query ID") %>'

    Many thanks in anticipation,

    Carl
    carl.howarth@m-s-solutions.co.uk


Working...