How do I use a C# string in my .aspx webpage?

Bandneogego

New Member
I have passed a value through a url to a C# .net page using query string. The url of the page looks like this:\[code\]http://contoso.com/products.aspx?field1=value1\[/code\]And in C#, I have this to catch it:\[code\]String myValue = http://stackoverflow.com/questions/12717039/Request.QueryString["field1"];\[/code\]What im looking to do is use this value in the page, something like this:\[code\]<h1><%# Eval("myValue") %></h1>\[/code\]How would I go about doing this? Obviously this HTML code doesn't work. I have exhausted some google searches on the subject so any information would be appreciated!!
 
Back
Top