hi
I used TextArea in my page
<textarea ID="txtdes" class="DVS2LT"></textarea>
protected void ImageButton2_Click1(object sender, ImageClickEventArgs e)
{
string data = Server.UrlDecode(Request.QueryString["BehCode"]);
SqlCommand _cmd = new SqlCommand("insertestate1", _cn);
_cmd.CommandType = CommandType.StoredProcedure;
_cn.Open();
_cmd.Parameters.AddWithValue("@Description", txtdes.Text);
_cmd.Parameters.AddWithValue("@Elevator", elv);
_cmd.Parameters.AddWithValue("@behcode", data);
_cn.Close();
but this error occur
Server Error in '/behtop website' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1061: 'System.Web.UI.HtmlControls.HtmlTextArea' does not contain a definition for 'Text' and no extension method 'Text' accepting a first argument of type 'System.Web.UI.HtmlControls.HtmlTextArea' could be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 1478: _cmd.Parameters.AddWithValue("@Description", txtdes.Text);
what should I do ?