日期:2014-05-20  浏览次数:20667 次

一个页面上使用两个DotNetTextBox控件
第一次发,不知道要给多少分,望见谅。
问题:
在一个页面上使用两个DotNetTextBox控件,但是提取第一个编辑框的值是空的,child=”true“ 加在哪个控件上都没用,还是提取不出来。

 <tr>
                <td  align ="center" class="style22" bgcolor="#ffffff">
                    岗位职责:</td>
                <td align="left" bgcolor="#ffffff" colspan="3">
                     <DNTB:WebEditor ID="CKEditorControl1" runat="server" UploadFolder="../upimg" 
                    Height="450px" Width="700px" systemFolder="system_dntb/" />
                    </td>
            </tr>
            <tr>
                <td  align ="center" class="style22" bgcolor="#ffffff">
                    任职资格:</td>
                <td align="left" bgcolor="#ffffff" colspan="3">
                     <DNTB:WebEditor ID="CKEditorControl2" runat="server" UploadFolder="../upimg" 
                    Height="450px" Width="700px" systemFolder="system_dntb/" Child="true" />
                    </td>
            </tr>


 zp.workZhiZe = this.CKEditorControl1.Text;
 zp.renzhi_ZiGe = this.CKEditorControl2.Text;
----------------------------------------
this.CKEditorControl1.Text这个值是空的

而且在CKEditorControl1中插入表情,会自动添加到第二个编辑框中。
------解决方案--------------------
你用的是富文本编辑器吗?
查下使用说明,可能取得值用的是value属性,还有帖子发在这里不是很合适,建议版主帮你移动下。