Inside of a GridView’s TemplateField i have a HTML-TextArea:
<asp:TemplateField HeaderText="Message">
<ItemTemplate>
<textarea id="txtArStatusMsg" cols="20" rows="2" style="width: 99%"></textarea>
</ItemTemplate>
</asp:TemplateField>
Q: how can i read the text of the text-area in the SelectedRow of the GridView?
Add
runat="server"to the textarea and callFindControl("txtArStatusMsg")on the SelectedRow of the GridView.To get the
TextAreas‘s text, you need to cast it to a HtmlTextArea and read it’s Value property.