By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,009 Members | 1,885 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,009 IT Pros & Developers. It's quick & easy.

Reference Request.Querystring in HTML

P: n/a
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>
Nov 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
=?Utf-8?B?TXJNaWtl?= <Mr****@discussions.microsoft.com> confessed in
news:61**********************************@microsof t.com:
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

--
Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.