<html>
<head>
<title>Retrieving the Value of an HtmlTextArea Control</title>
<link rel="stylesheet" href="/shared/netdemos.css">
<script language="C#" runat="server">
void submitHandler ( object src, EventArgs e ) {
msg.InnerHtml = "You wrote: <p>" + myTextArea.Value;
}
</script>
</head>
<body>
<!-- #include virtual="~/shared/top.inc -->
<div class="header"><h2>Retrieving the Value of an <span class="hilite">HtmlTextArea Control</span></h2></div>
<hr size=1 width=92%>
<center>
<form runat="server">
<p>What do you like best about ASP.NET?</p>
<textarea id="myTextArea" cols=40 rows=4 runat="server"
style="font:10pt verdana" />
<p><input type=submit value="Submit" runat="server"
onServerClick="submitHandler"></p>
<p id="msg" runat="server" />
</form>
</center>
<hr size=1 width=92%>
<!-- #include virtual="~/shared/viewsrc.inc" -->
</body>
</html>