C# 在asp.net网站中提交表单时从nicEdit捕获服务器端的内容
我正在asp页面中使用nicedit。我正在用asp.net开发一个网站。我设法让nicedit工作,但如何才能获得textarea的值,我想在单击submit按钮时将该值存储在DB中。实际上,我正在尝试在服务器端代码(c#)中获取textarea值C# 在asp.net网站中提交表单时从nicEdit捕获服务器端的内容,c#,nicedit,C#,Nicedit,我正在asp页面中使用nicedit。我正在用asp.net开发一个网站。我设法让nicedit工作,但如何才能获得textarea的值,我想在单击submit按钮时将该值存储在DB中。实际上,我正在尝试在服务器端代码(c#)中获取textarea值 // 要获得输入数据的结果,需要传递文本区域的ID。 见下文: data = new nicEditors.findEditor('bee'); // bee is the ID of the textarea d = data.getCont
//
要获得输入数据的结果,需要传递文本区域的ID。
见下文:
data = new nicEditors.findEditor('bee'); // bee is the ID of the textarea
d = data.getContent(); // return the content
要获得输入数据的结果,需要传递textarea的ID。 见下文:
data = new nicEditors.findEditor('bee'); // bee is the ID of the textarea
d = data.getContent(); // return the content
您可以通过
value
属性获取textarea的值
string val = bee.Value
您可以通过
value
属性获取textarea的值
string val = bee.Value