Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/302.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 在asp.net网站中提交表单时从nicEdit捕获服务器端的内容_C#_Nicedit - Fatal编程技术网

C# 在asp.net网站中提交表单时从nicEdit捕获服务器端的内容

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

我正在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.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