radio里面加个onclick="aa(this.value);"
然后js
function aa(value)
{
你的处理
}

解决方案 »

  1.   

    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>无标题页</title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
            <asp:RadioButtonList ID="r1" runat="server" onclick="a()">
            <asp:ListItem Text="1"  Value="a"></asp:ListItem>
            <asp:ListItem Text="2"  Value="b"></asp:ListItem>
            <asp:ListItem Text="3"  Value="c"></asp:ListItem>
            </asp:RadioButtonList><br />
            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br />
            </div>
        </form>
    </body>
    </html>
    <script>
    function a()
    {
        obj = document.getElementsByName("r1");
        
        for(var i=1;i<obj.length;i++)
        {
            if(obj[i].checked)
            document.getElementById("TextBox1").value = obj[i].value;
        }
    }
    </script>
      

  2.   

    此回复为自动发出,仅用于显示而已,并无任何其他特殊作用
    楼主【didiaogao】截止到2008-06-26 17:19:21的历史汇总数据(不包括此帖):
    发帖数:4                  发帖分:60                 
    结贴数:4                  结贴分:60                 
    未结数:0                  未结分:0                  
    结贴率:100.00%            结分率:100.00%            
    敬礼!
      

  3.   

    如果radioButtonList要调用客户端的js代码 是不是该用onclientclick事件
      

  4.   

    不用,就onclick,JS本来就是客户端语言