首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

eWebEditor编辑器粘贴内容无法保存,该怎么处理

2012-03-27 
eWebEditor编辑器粘贴内容无法保存麻烦大家帮我看下这段代码,我也不知道怎么个情况,如果手敲文字的话是可

eWebEditor编辑器粘贴内容无法保存
麻烦大家帮我看下这段代码,我也不知道怎么个情况,如果手敲文字的话是可以保存到数据库里的,但是如果是粘贴内容到编辑器里的话是无法保存到数据库的,包括把东西复制到写字板里再粘贴都不可以,希望大家帮忙分析下问题出在哪里


HTML code
<%if Request.QueryString("mark")="southidc" then%><%P_title=Trim(Request("P_title"))P_leixing=Request("P_leixing")P_content=Request("P_content")%><%Set rs = Server.CreateObject("ADODB.Recordset")sql="select * from P_News"rs.open sql,conn,1,3rs.addnewrs("P_title")=P_titlers("P_leixing")=P_leixingrs("P_content")=P_contentrs.updaters.closeresponse.redirect "news_manage.asp"end if%><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">  <tr>     <td align="center" valign="top"> <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">      <tr>        <td height="5"></td>      </tr>      <tr>        <td height="25" bgcolor="#4F81F7">&nbsp;<font color="#FFFFFF">::<strong>添加新闻</strong></font></td>      </tr>      <tr>        <td height="10"></td>      </tr>    </table><table width="98%" border="0" align="center" cellpadding="0" cellspacing="1">        <tr>          <td align="left"><table width="100%" border="0" align="left" cellpadding="0" cellspacing="1" bgcolor="eff0eb">              <tr>                <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="1" cellpadding="0">                       <form method="post" name="myform" action="?mark=southidc">                      <tr bgcolor="eff0eb">                        <td width="120" height="25" align="right">新闻标题:</td>                        <td width="374"><input name="P_title" type="text" id="P_title" size="20"></td>                        <td width="688">栏目类型:                        <select name="P_leixing">                      <option value="1">最新动态</option>                      <option value="0">常见问题</option>                    </select></td>                      </tr>                      <tr bgcolor="eff0eb">                        <td width="120" height="25" align="right" bgcolor="eff0eb">新闻内容:</td>                        <td colspan="2">                      <input type="hidden" name="P_content" value="">                       <iframe ID="eWebEditor1" src="Southidceditor/ewebeditor.htm?id=P_content&style=" frameborder="0" scrolling="no" width="96%" HEIGHT="450"></iframe>                      </td>                      </tr>                      <tr align="center" bgcolor="eff0eb">                        <td height="25" colspan="3"><input type="submit" name="Submit" value=" 添 加 " />                        </td>                      </tr>                    </form>                </table></td>              </tr>          </table></td>        </tr>      </table>    <br> </td>  </tr></table> 




[解决办法]
你粘贴的是word内容吧,里面的垃圾很多,导致超过100K导致。可以使用从word中粘贴或者参见
http://blog.csdn.net/vince6799/article/details/1287757
实现Form表单域中Post大于100K的数据

热点排行