-1

Hi,
Can anybody tell me how to set values to textarea.
i have an value from sqldb which are to be set.

I can retrive the values like this

string add1 = Request.Form["txtadd1"];

but not able to set the values to the textarea.

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by bhagawatshinde
0

Use a serverside control. then you can just do the following:

//HTML control with runat="server" so that it is accessible to .Net
<textarea id="txtTextArea" runat="server"></textarea>

or you can use the ASP.Net control

<asp:TextBox id="txtTextArea" TextMode="multiline" runat="server" />
//txtTextArea being the ID of the control
txtTextArea.Text = "The text you want in it";
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.