
我不是最好,但我可以更好,大家一起加油了

 2006-11-05 09:14
	    2006-11-05 09:14
  
 2006-11-05 19:57
	    2006-11-05 19:57
   2006-11-08 16:37
	    2006-11-08 16:37
  aspx:
<div id="selDiv" style=" z-index:100; visibility:visible; clip:rect(0px 110px 80px 92px); position:absolute"><%--left:279px; top:167px"--%>
     <asp:DropDownList ID="workerno_list"  runat="server" style="z-index:-1"  Width="110px" ></asp:DropDownList>
     </div>
    <asp:TextBox ID="workerno_value" runat="server"  style=" z-index:103px; position:absolute"  Font-Size="10" Width="93px" MaxLength ="50" Height="22px"></asp:TextBox> 
<script>
                function addTxtTanto(va)
                {
                document.getElementById("workerno_value").value=va;
                document.getElementById("workerno_value").select();
                }
 
    </script> 
aspx.cs:
page_load()
{
        if (!IsPostBack)
        {
            workerno_list.Attributes["onchange"] = "addTxtTanto(this.options[selectedIndex].innerText)";
        }
}
 2006-11-10 10:54
	    2006-11-10 10:54
   2006-11-10 23:34
	    2006-11-10 23:34