G
Guest
Hi,
I need to create datagrid hyperlink columns with multiple parameters in the
URL.
In my research on how to do this, it is recommended to create a template
column which I have done. The code I am using is creating the following error
BC30203: Identifier expected.
Source Error:
Line 36: <asp:TemplateColumn HeaderText="VIN">
Line 37: <ItemTemplate>
Line 38: <asp:HyperLink Runat="server"
Line 39: NavigateUrl='<%# _
Line 40: "Details.aspx?VINSeq=" &
Here is the code I have added for the template column
<asp:TemplateColumn HeaderText="VIN">
<ItemTemplate>
<asp:HyperLink Runat="server"
NavigateUrl='<%# _
"Details.aspx?VINSeq=" &
Container.DataItem("VINSeq") & _
"&VIN=" &
Container.DataItem("VIN") %>' />
</ItemTemplate>
</asp:TemplateColumn>
Any Ideas on a better way to pass multiple parameters with a data grid?
I need to create datagrid hyperlink columns with multiple parameters in the
URL.
In my research on how to do this, it is recommended to create a template
column which I have done. The code I am using is creating the following error
BC30203: Identifier expected.
Source Error:
Line 36: <asp:TemplateColumn HeaderText="VIN">
Line 37: <ItemTemplate>
Line 38: <asp:HyperLink Runat="server"
Line 39: NavigateUrl='<%# _
Line 40: "Details.aspx?VINSeq=" &
Here is the code I have added for the template column
<asp:TemplateColumn HeaderText="VIN">
<ItemTemplate>
<asp:HyperLink Runat="server"
NavigateUrl='<%# _
"Details.aspx?VINSeq=" &
Container.DataItem("VINSeq") & _
"&VIN=" &
Container.DataItem("VIN") %>' />
</ItemTemplate>
</asp:TemplateColumn>
Any Ideas on a better way to pass multiple parameters with a data grid?