Warning: Undefined array key "HTTP_REFERER" in /www/wwwroot/prod/www.enjoyasp.net/wp-content/plugins/google-highlight/google-hilite.php on line 58
原理:在on blur 或 onkeydown 时显示调用 _doPoastBack事件,回访到服务器端,要执行对应的哪个方法,在前台加hidden指定
如: function btnClick( btn ){
??????????? if (? event.keyCode == 13 &&? btn != undefined ){
??????????????? //btn.click();
??????????????? document.getElementById(“myHidState”).value = btn.id;? //设置input type = ‘hidden’ 的值
??????????????? __doPostBack(btn.id,””);
??????????? }
??????? }
在后台 load时就可据 Request.Forms[“myHidStateName”] 的值要执行对应的方法