WQeditor控件获取值问题

来源:百度知道 编辑:UC知道 时间:2024/05/16 06:25:46
WQeditor网页编辑器如何获取值?
添加一个WQeditor1控件,如果事先赋值WQeditor.Text="value";
Response.Write(WQeditor1.Text.ToString());可以输出value
但是在WQeditor编辑器中编辑一些内容,用Response.Write(WQeditor1.Text.ToString());不显示编辑的内容,而显示的是事先赋值value,如果实现不赋值,就什么都不显示,为什么?

如果事先赋值WQeditor.Text="value";

我想这句代码应该是放在page_load里面,

修改成
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
WQeditor.Text="value";
}

}

需要把这些值存储一下吧
如果没有存储应该被赋初始值,初始值为空
比如WQeditor1.Text=WQeditor1.Text 可能不是这样 但是必须赋值

如果事先赋值WQeditor.Text="value";
Response.Write(WQeditor1.Text.ToString());可以输出value
是因为WQeditor1被赋值为"value",而且没有被修改