Help with formatting a HyperLinkColumn in Datagrid
Here is what I am doing in a datagrid for the colums:
Code:
<Columns>
<asp:HyperLinkColumn DataNavigateUrlField="CatID"
DataNavigateUrlFormatString=
"../VXForums/Index.aspx?CatID={0}"
DataTextField="CatName" HeaderText="Category">
</asp:HyperLinkColumn>
<asp:BoundColumn DataField="CatDescription"
HeaderText="Description">
</asp:BoundColumn>
</Columns>
The problem I have is I want two values in the query string, both comming from the dataset that is databound to the datagrid. Right now, the link looks like this when ran:
../VXForums/Index.aspx?CatID=1
../VXForums/Index.aspx?CatID=2
etc...
I want it to look like this:
../VXForums/Index.aspx?CatID=1&SecID=8
../VXForums/Index.aspx?CatID=2&SecID=9
etc...
The SecID is comming from the dataset.
So the question is, how do I get two values from the dataset into the DataNavigateUrlFormatString property, and/or how do I get two values into the DataNavigateUrlField?
If you need more information, just ask, this is pretty important to the project.