At work there is a gridview and it has the following syntax
<asp:HyperLinkField
DataNavigateUrlFields="NameID"
DataNavigateUrlFormatString="names.aspx?nameid={0}"
DataTextField="name"
HeaderText="Client Name"
SortExpression="Name"
ItemStyle-Width="100px"
ItemStyle-Wrap="true" />
So I added the line DataNavigateUrlFormatString... The link is showing properly but the address looks like this
http://.....clients/clientNames/names.aspx?nameid=123
This gridview is in the ClientsNames folder.. but I actually want to use the names.aspx of the maintenance folder... so Basically i want the URL to redirect like this
httpL//....clients/Maintenance/names.aspx?nameid=123
I tried to add DataNavigateUrlFormatString="Maintenance/names.aspx?nameid={0}" but instead it would create url like this
http://......clients/clientNames/Mainteanance/names.aspx?nameid=123
How can I make it so that the url looks like this from this grid view?
http://.....clients/Maintenance/names.aspx?nameid=123
Thank you