在 onchange 事件里写 这个就可以了, 给分我就告诉你,谁让你不给分了,你小子。

解决方案 »

  1.   

    <head runat="server">
        <title>无标题页</title>
        <script type="text/javascript">
            function f_Change()
            {
                document.all("TextBox1").value += document.all("DropDownList1").value + "|";
            }
        
        </script>
    </head> <form id="form1" runat="server">
        <div>
            <asp:DropDownList ID="DropDownList1" onchange="f_Change()" runat="server">
                <asp:ListItem>1</asp:ListItem>
                <asp:ListItem>2</asp:ListItem>
                <asp:ListItem>3</asp:ListItem>
            </asp:DropDownList>
            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox></div>
        </form>