javascript实现控件的可见性asp.net里面
我想这样写的javascript:<script language="javascript">
function ShowCaleter(i)
{one = document.getElementById("Calendar1");Calendar1日期控件的id
if(i==1)
one.Style.Display="none";
else
one.Style.display="";//显示
}
</script>
vs2003这样调用的:
private void Button1_Click(object sender, System.EventArgs e)
{
Page.Response.Write("<script language=javascript>ShowCaleter(2)</script>");
}
可是怎么不行?????