Reference Request.Querystring in HTML

G

Guest

I have a DataGrid Hyperlink column as shown here. I'm trying to pass the
JobNum parameter as shown. The JobNum parameter is the webform's
Request.Querystring("JobNum").

I can't find out how to format this syntax correctly, as
Request.Querystring("JobNum") causes a compilation error in the HTML. Could
someone please let me know how I can reform this HTML? Currently I get the
error "Compilation Error" when the page loads.

<asp:HyperLink runat="server" Text='<%# DataBinder.Eval(Container,
"DataItem.FlitchNum") & "&JobNum=" & Request.Querystring("JobNum")) %> '
NavigateURL='<%# "Logs_Usage.aspx?id=" & DataBinder.Eval(Container,
"DataItem.FlitchNum") %>' Target="_self" ID="HL99"
Name="HyperLink1"></asp:HyperLink>
 
I

IPGrunt

I have a DataGrid Hyperlink column as shown here. I'm trying to pass the
JobNum parameter as shown. The JobNum parameter is the webform's
Request.Querystring("JobNum").

I can't find out how to format this syntax correctly, as
Request.Querystring("JobNum") causes a compilation error in the HTML. Could
someone please let me know how I can reform this HTML? Currently I get the
error "Compilation Error" when the page loads.

<asp:HyperLink runat="server" Text='<%# DataBinder.Eval(Container,
"DataItem.FlitchNum") & "&JobNum=" & Request.Querystring("JobNum")) %> '
NavigateURL='<%# "Logs_Usage.aspx?id=" & DataBinder.Eval(Container,
"DataItem.FlitchNum") %>' Target="_self" ID="HL99"
Name="HyperLink1"></asp:HyperLink>

Try QueryString

--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top