Multiple querystring in datagrid

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

    #1

    Multiple querystring in datagrid

    All,
    I'd like to use multiple querystring in hyperlink column in Datagrid

    I want to create a hyperlink column in my datagrid which contains two query
    strings
    ex: nextpage.aspx?i d=11&name=somen ame
    for one querystring i would use nextpage.aspx?i d={0}
    when i trying nextpage.aspx?i d={0}&name={1} its raising errors

    Thanks,
    Amy


  • Ravikanth[MVP]

    #2
    RE: Multiple querystring in datagrid

    Hi

    Please check the following articles



    Some times its necessity for programmers to send multiple parameters in

    Datagrid using HyperLink Column. Following code explains how to do


    < asp:TemplateCol umn HeaderText="Vie w Details">
    < ItemTemplate>
    < asp:Hyperlink runat="server" Text='View Details'

    NavigateUrl='< %# "page.aspx?View ID=" &
    Server.UrlEncod e(Container.Dat aItem("ListingN o"))
    "&Param2="&Serv er.UrlEncode(Dr opDown1.Selecte dItem.Value)%> '

    ID="Hyperlink1 " NAME="Hyperlink 1" />
    < /ItemTemplate>
    < /asp:TemplateCol umn>



    HTH
    Ravikanth[MVP]

    "Amy" wrote:
    [color=blue]
    > All,
    > I'd like to use multiple querystring in hyperlink column in Datagrid
    >
    > I want to create a hyperlink column in my datagrid which contains two query
    > strings
    > ex: nextpage.aspx?i d=11&name=somen ame
    > for one querystring i would use nextpage.aspx?i d={0}
    > when i trying nextpage.aspx?i d={0}&name={1} its raising errors
    >
    > Thanks,
    > Amy
    >
    >[/color]

    Comment

    Working...