一个文本编辑器,在需要编辑文本的地方,直接插入下面的代码,就能引用。
<iframe ID="eWebEditor1" src="ewebeditor.htm?id=content1&style=coolblue" frameborder="0" scrolling="no" width="500" HEIGHT="350"> </iframe>
在.cs中取其处理过的html:
string content = Convert.ToString(this.eWebEditor1.contentWindow.document.body.innerHTML);
提示错误是:eWebEditor1没有定义。
有于eWebEditor1不是一个导入控件,那如何定义eWebEditor1呢?
取值的代码有问题吗?恳请指点。
<iframe ID="eWebEditor1" src="ewebeditor.htm?id=content1&style=coolblue" frameborder="0" scrolling="no" width="500" HEIGHT="350"> </iframe>
在.cs中取其处理过的html:
string content = Convert.ToString(this.eWebEditor1.contentWindow.document.body.innerHTML);
提示错误是:eWebEditor1没有定义。
有于eWebEditor1不是一个导入控件,那如何定义eWebEditor1呢?
取值的代码有问题吗?恳请指点。
解决方案 »
- c# 服务器获取 客户端请求的机器名称或内网的IP
- 超级有难度 如何实现 iis windows安全验证方式自动登陆?
- (XML)序列化和反序列化的一个问题
- 父子页面之间的传值问题
- 关于Connection的Dispose()问题??????????
- XmlNode select = listview.SelectSingleNode("//@select"); //@ 是啥意思?
- 10.0.5.149, 58.66.1.234 是国内还是国外的IP
- 如何让dropdownlist返回第一项?
- 生成XML数据的问题
- 邀请(江雨,思归等高手前来)难道真的没有人能解决这个问题吗?aspnetmenu,我已经问过好几遍了,我只有这10分了?
- dataGridView
- 发送安全答案
document.getElementById("hdnValue").value = "your value";
//if this code doesn't work, try this
parent.document.getElementById("hdnValue").value="your value";
试试