摘要:
//首先要在PageLoad()事件中注册属性 protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Button1.Attributes.Add("onclick", "return checkSame()");//为Button1添加onclick()事件 ,Button为服务器控件 }//注意:checkSame()这是一个写在aspx面页的js函数,必须有返回值,为:true 或 false } //接着写Button1的onclick事件,如果刚才的c 阅读全文
posted @ 2010-09-05 18:49
深海大虾
阅读(689)
评论(0)
推荐(0)
浙公网安备 33010602011771号