this.SiteCommentsTextArea.setRawValue("blah blah blahblah blahblah blah blah");
---- Timothy Grant Vogelsang tvogelsang [at] gmail [dot] com Coolite Toolkit 0.7 SVN (Professional Edition) Microsoft .NET Framework 2.0 Microsoft ASP.NET Ajax 1.0
<%@ Page Language="C#" %><%@ Register assembly="Coolite.Ext.Web" namespace="Coolite.Ext.Web" tagprefix="ext" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><script runat="server"> protected void Page_Load(object sender, EventArgs e) { this.TextArea1.Text = @"blah blah blahblah blahblah blah blah"; } protected void Button1_Click(object sender, EventArgs e) { this.TextArea2.Text = this.TextArea1.Text; } protected void Button2_Click(object sender, EventArgs e) { this.Label1.Text = this.TextArea2.Text; }</script><html xmlns="http://www.w3.org/1999/xhtml" ><head runat="server"> <title>TextArea with newline characters</title></head><body> <p><a href="NewLines.aspx">Reload</a></p> <form id="form1" runat="server"> <ext:ScriptManager ID="ScriptManager1" runat="server" /> <p> TextArea #1<br /> <ext:TextArea ID="TextArea1" runat="server" Height="150" Width="300" /> <ext:Button ID="Button1" runat="server" Text="Move" Icon="ArrowDown" onclick="Button1_Click" /> </p> <p> TextArea #2<br /> <ext:TextArea ID="TextArea2" runat="server" Height="150" Width="300" /> <ext:Button ID="Button2" runat="server" Text="Submit" Icon="Printer" onclick="Button2_Click" /> </p> <asp:Label ID="Label1" runat="server" /> </form></body></html>