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

Biulding Querystring

P: n/a
How can I insert a value that i have in a variable (codebehind) into the
html part of the page to build a querystring?

Say: <A href='MyPage.aspx?Id=(Insert the value here)'>

TIA!
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi,

Assign an id to the link and make it runat the server. Try this.

<a runat = server id = "MyLink" href = "webform1.aspx">click me</a>

in code behind

MyLink.href = "webform1.aspx?ID=2"

Ken
------------------------------------

"TCORDON" wrote:
How can I insert a value that i have in a variable (codebehind) into the
html part of the page to build a querystring?

Say: <A href='MyPage.aspx?Id=(Insert the value here)'>

TIA!

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.