Hi guys...
i want to get value of an html control in c#..say textarea in c# textbox
i tried doin it as textbox1.text = Request.Form["TextArea1"].tostring()
This is not working..."object instance not created..."
Hi guys...
i want to get value of an html control in c#..say textarea in c# textbox
i tried doin it as textbox1.text = Request.Form["TextArea1"].tostring()
This is not working..."object instance not created..."
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
lovely neha44 reputationPosted Mar 6, 2009, 6:24 PM EST
hi use this
TextBox1.Text = TextArea.InnerHtml;
Vipul Kelkar35 reputationPosted Mar 6, 2009, 6:52 PM EST
Thanks neha...
I have a html menu on the page and when user clicks on the link i want to get value of the clicked link
<div>
<span>Electronicsspan> <a href="products.aspx" id="1">Tva> <a href="http://tools.dynamicdrive.com/favicon/">Washing Machinea> div>when the user clicks on TV...i want the value "TV" and redirect to product.aspx ...not getting it by Request.Form["1"].tostring()
Mirko Meier80 reputationPosted Mar 6, 2009, 9:21 PM EST
Example:
Click me.
If you click the link you can access the link by his ID.
Vipul Kelkar35 reputationPosted Mar 6, 2009, 11:13 PM EST