Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/31.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
Asp.net CKEditor不传输写入数据库的内容_Asp.net_Sql Server_Visual Studio_Ckeditor - Fatal编程技术网

Asp.net CKEditor不传输写入数据库的内容

Asp.net CKEditor不传输写入数据库的内容,asp.net,sql-server,visual-studio,ckeditor,Asp.net,Sql Server,Visual Studio,Ckeditor,通过这种方式,我将其添加到VisualStudio中的项目中 <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"> <script src="../ckeditor/ckeditor.js"></script> </asp:Content> CKEDITOR.replace(“

通过这种方式,我将其添加到VisualStudio中的项目中

 <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script src="../ckeditor/ckeditor.js"></script>
</asp:Content>

CKEDITOR.replace(“ctl00$ContentPlaceHolder1$textBox1”)
我也这样扔切克迪特。我运行项目时没有任何问题,但是我在CKeditor中编写的信息没有添加到数据库中。
如何解决此问题?

首先确保错误出现在ckeditor上,而不是在将数据插入数据库时,然后使用
而不是
ctl00$contentplaceholder 1$textBox1
,最后在document ready上运行脚本。ckeditor本身不会对数据库执行任何操作。您需要为此编写代码。如果您已经写了一些,请在
getData()
<asp:TextBox ID="textBox1" runat="server" CssClass="texboxGorsel" name="textBox1"></asp:TextBox>
            <script>CKEDITOR.replace("ctl00$ContentPlaceHolder1$textBox1")</script>