比如我从Toolbox中的Standard页面拖一个编辑框出来,在Default.aspx的源码中多出<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>。我现在试图在Default.aspx源码中用script改变编辑框里的文字,怎么做?我这样写没有效果
function Button1_onclick() {
document.getElementById("TextBox1").setAttribute("Text", "abcd");
}
在线等!