Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to pass 2 parameter as a querystring in Hyperlink's DataNavigateURLFormatString in GridView

How to pass 2 parameter as a querystring in Hyperlink's DataNavigateURLFormatString in GridView

Scheduled Pinned Locked Moved ASP.NET
questionhelpcssdatabasecom
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tarun Dudhatra
    wrote on last edited by
    #1

    Hi I am using GridView. And in that gridview One hyperlink filed is there. Till now I was passing only one parameter as a querystring to DataNavigateUrlFormatString property but now it is required to pass 2 value So how can I do Here is the code which was workig fine DataTextField="CrName" SortExpression="CrName" /> But now I added this one so it is giving error Like "Index(zero base) must be greater than or equal to zero and less than the size of the argument list." DataTextField="CrName" SortExpression="CrName" /> Can any one figure it out what is the problem and how can we solve? Thanks in advance http://techiefromsurat.blogspot.com/

    S 1 Reply Last reply
    0
    • T Tarun Dudhatra

      Hi I am using GridView. And in that gridview One hyperlink filed is there. Till now I was passing only one parameter as a querystring to DataNavigateUrlFormatString property but now it is required to pass 2 value So how can I do Here is the code which was workig fine DataTextField="CrName" SortExpression="CrName" /> But now I added this one so it is giving error Like "Index(zero base) must be greater than or equal to zero and less than the size of the argument list." DataTextField="CrName" SortExpression="CrName" /> Can any one figure it out what is the problem and how can we solve? Thanks in advance http://techiefromsurat.blogspot.com/

      S Offline
      S Offline
      SachinKumar M
      wrote on last edited by
      #2

      you need to give date in datanavigateurlfields.

      datanavigateurlfields="CrId,Date"

      <asp:hyperlinkfield datanavigateurlfields="CrId,Date" itemstyle-cssclass="clientbor" headerstyle-cssclass="clientbort" datanavigateurlformatstring="customInteraction.aspx?CrId={0}&Date={1} " headertext="Name">
      DataTextField="CrName" SortExpression="CrName" />

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups