我在我的项目中添加了一个文本编辑器,又在页面中添加了一个 RadioButtonList ,
<asp:RadioButtonList ID="rbl_Format" runat="server" RepeatDirection="Horizontal">
<asp:ListItem Selected="True">Html</asp:ListItem>
<asp:ListItem>Text</asp:ListItem>
</asp:RadioButtonList>
现在我想通过选择文本编辑器中的Html/Text模式来牵动RadioButtonList 的选择值,文本编辑器选择Html编辑模式,RadioButtonList也选择Html;文本编辑器选择Text编辑模式,RadioButtonList也选择Text,那么如何在页面取得文本编辑器的选择值???

解决方案 »

  1.   

    给页面加个隐藏域<input type=hidden />然后根据你想要的的要求来给这个隐藏域赋值,
    在根据取得的值中判断控制出你想要的结果
      

  2.   

    我用的Iframe框架来调用文本编辑器,怎么在页面取得它的值,怎么赋给隐藏域???
    <iframe frameborder="0" scrolling="no" src="../eWebEditor/ewebeditor.htm?id=txt_Content&style=coolblue"
    style="width: 700px; height: 550px" width="100%" id="IFRAME1"></iframe>