DemHere is my textarea control:
<textarea id="Physical_DemandsTextBox" runat="server" cols="35" rows="6" value='<%# Bind("Physical_Demands") %>' />
Here is my logic that works with the other asp:TextBox
controls
if (FormView1.CurrentMode == FormViewMode.Insert)
{
TextBox txtPhyDem = FormView1.FindControl("Physical_DemandsTextBox") as TextBox;
}
if (txtPhyDem != null)
{
txtPhyDem.Text = "Failed Test of the Testing Testers.";
}
When I run the application on insert mode the text area is blank. How do I fix this?
You could use the
Body
property, for sample:but you also could use directly the asp.net control what is better, for sample, in webform:
and code behine: