
ASP.net 中ewebeditor使用方法
在.cs页面内有个string变量,内容是我要显示的内容,怎样将其传进ewebeditor中?我要具体代码;在完成编辑后,点击完成编辑按钮,提交ewebeditor数据到...
在.cs页面内有个string变量,内容是我要显示的内容,怎样将其传进ewebeditor中?我要具体代码;
在完成编辑后,点击完成编辑按钮,提交ewebeditor数据到数据库的的代码该怎么写?用intput还是asp的button?如果是input,代码怎么写?如果是button,又要怎样写?解决一个问题追加10分,谢谢各位大哥大姐们!! 展开
在完成编辑后,点击完成编辑按钮,提交ewebeditor数据到数据库的的代码该怎么写?用intput还是asp的button?如果是input,代码怎么写?如果是button,又要怎样写?解决一个问题追加10分,谢谢各位大哥大姐们!! 展开
2个回答
展开全部
在需要的地方 写
<asp:TextBox ID="content" runat="server" Style="display: none"></asp:TextBox>
这个textbox 的ID content 必须和下面的相同 src 是你ewebeditor的路径
<iframe id='eWebEditor1' src='../../eweb/ewebeditor.htm?id= content //就是和他相同 &savepathfilename=d_savepathfilename'
frameborder='0' scrolling='no' width='550' height='350'></iframe>
用.net 的 button 单击事件代码
string Content =content.text.trim(); //调用textbox的ID
修改时加载也是一样
<asp:TextBox ID="content" runat="server" Style="display: none"></asp:TextBox>
这个textbox 的ID content 必须和下面的相同 src 是你ewebeditor的路径
<iframe id='eWebEditor1' src='../../eweb/ewebeditor.htm?id= content //就是和他相同 &savepathfilename=d_savepathfilename'
frameborder='0' scrolling='no' width='550' height='350'></iframe>
用.net 的 button 单击事件代码
string Content =content.text.trim(); //调用textbox的ID
修改时加载也是一样
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询