lorena
Well-known member
I have a form with a datagrid and I would like to be able to change a portion of the DataNavigateUrlFormatString depending on other factors in the web app.
Here is my code:
Specifically, I want to change "cat=0" to "cat=5" depending on whether the record will be editable or not.
Is there a way to do this?
Here is my code:
Code:
<asp:HyperLinkColumn HeaderText="Details" Text="View Details" DataNavigateUrlField="Req_ID" Target="_blank" DataNavigateUrlFormatString="mgrid_details.aspx?id={0}&cat=0" />
Is there a way to do this?