ewebeditor的奇怪问题,实在搞不定了,那位兄弟帮帮忙
vesaa 2005-07-18 04:50:21 Aspx------------------------
<asp:textbox id="tb_content" TextMode="MultiLine" Runat="server" MaxLength="2147483647"></asp:textbox>
<iframe id="myiframe" style="WIDTH: 600px; HEIGHT: 307px" marginWidth="0"marginHeight="0"
frameBorder="0" width="100%" scrolling="no" height="100%" runat="server"></iframe>
Cs-----------------------------
if(!Page.IsPostBack )
{
this.tb_content .Style.Add("display","none");
this.myiframe.Attributes.Add("src","webedit/ewebeditor.asp?id=tb_content&style=s_coolblue1");
}
取值:-------
run_sql.Parameters["@content"].Value =Request.Form ["tb_content"].ToString ();
或者run_sql.Parameters["@content"].Value =tb_content.Text;
问题:
1. 在编辑区打几行文字的话, 可以取道值, 并写入数据库 ,但是要是粘贴东西多的话(比如说带图片的新闻),就取不到值了.原来我以为是数据长度的问题呢, 后来换了 text型 也不型, 还是出问题.看来不是.
2. 我把textbox显示出来, 发现 提交后 里面有值, 而且都是正确的. 看来是我代码的问题.我想可能是这样的: 我提交的同时,ewebeditor对编辑区进行了编码,但此时程序正在取值入库,可能没取到.入库完的同时,ewebeditor也编码完了.这是我的猜测,可能不对.
大家帮忙解决撒,原来用asp写的时候是 post到其他页面了.所以数据肯定会过去,可现在不用post了,问题就来了.大家帮帮忙撒~~