L
Laura K
I have a datagrid with a hyperlink field. It passes a parameter but I need
it to pass three. I need two of the parameters to be querystrings that have
already been passed to the page but I have no idea how to add them the the
hyperlink column.
Here is the code to the hyperlink column
<asp:HyperLinkColumn
HeaderText="strProductName"
Visible="True"
DataTextField="strProductName"
DataNavigateUrlField="intProductID"
DataNavigateUrlFormatString="details.aspx?ProductID={0}"/>
<asp:BoundColumn DataField="curPrice"
HeaderText="curPrice"
ReadOnly="true"
Visible="True"/>
Here is the code if it were to be outside the datagrid.
<a href="details.aspx?prodID=<%# dsSubCategory.FieldValue("intProductID",
Container) %>&strCssPath=<%= Request.QueryString("StrCSSPath")
%>&strSubCategory=<%=
server.UrlEncode(Request.QueryString("strSubCategory")) %>">
I have taken care of the details.aspx?#
dsSubCategory.FieldValue("intProductID", Container) %>
but I do not know how to pass the existing parameters
Any help appreciated.
Thanks
Laura K
it to pass three. I need two of the parameters to be querystrings that have
already been passed to the page but I have no idea how to add them the the
hyperlink column.
Here is the code to the hyperlink column
<asp:HyperLinkColumn
HeaderText="strProductName"
Visible="True"
DataTextField="strProductName"
DataNavigateUrlField="intProductID"
DataNavigateUrlFormatString="details.aspx?ProductID={0}"/>
<asp:BoundColumn DataField="curPrice"
HeaderText="curPrice"
ReadOnly="true"
Visible="True"/>
Here is the code if it were to be outside the datagrid.
<a href="details.aspx?prodID=<%# dsSubCategory.FieldValue("intProductID",
Container) %>&strCssPath=<%= Request.QueryString("StrCSSPath")
%>&strSubCategory=<%=
server.UrlEncode(Request.QueryString("strSubCategory")) %>">
I have taken care of the details.aspx?#
dsSubCategory.FieldValue("intProductID", Container) %>
but I do not know how to pass the existing parameters
Any help appreciated.
Thanks
Laura K