How to pass 2 parameter as a querystring in Hyperlink's DataNavigateURLFormatString in GridView
-
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/
-
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/
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" />