我在cs文件中写:
Response.Write("<script language=javascript>document.form1.getElementById['Button1'].value='aaa';</script>");
其中Button1为asp控件
会出现提示:
Microsoft JScript 运行时错误: 'document.form1.getElementById' 为空或不是对象
应该怎样才可以调用asp控件呢?