<html>
<head>
<title>TextNode MultiLine Example</title>
<link rel="stylesheet" href="/shared/netdemos.css">
<script language="C#" runat="server">
protected void SubmitButton_Click ( Object src, EventArgs e ) {
msg.Text = "Thank you for your comment: <br>" + comments.Text;
}
protected void Check_Change ( Object src, EventArgs e ) {
comments.Wrap = wrapCheckBox.Checked;
comments.ReadOnly = readOnlyCheckBox.Checked;
}
</script>
<body>
<!-- #include virtual="~/shared/top.inc" -->
<div class="header"><h2>TextNode MultiLine Example</h2></div>
<hr size=1 width=92%>
<form runat="server">
<div align="center">
<p>Please enter a comment and click the submit button. </p>
<asp:textbox id="comments"
textmode="multiline"
columns=30
rows=8
runat="server" />
<asp:requiredfieldvalidator
id="Value1RequiredValidator"
controltovalidate="comments"
errormsg="Please enter a comment.<br>"
display="Dynamic"
runat="server" />
<p><asp:checkbox id="wrapCheckBox"
text="Wrap Text"
checked="True"
autopostback="True"
oncheckedchanged="Check_Change"
runat="server" />
<asp:checkbox id="readOnlyCheckBox"
text="ReadOnly"
checked="False"
autopostback="True"
oncheckedchanged="Check_Change"
runat="server" /></p>
<asp:button id="SubmitButton"
text="Submit"
onclick="SubmitButton_Click"
runat="server" />
<p><asp:label id="msg" runat="server" /></p>
</div>
</form>
<hr size=1 width=92%>
<!-- #include virtual="~/shared/viewsrc.inc" -->
</body>
</html>