<form name="form1" method="post" action="login.aspx" id="form1">
<div>
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTEwMjA1MjI0MjJkZA==" />
</div>
<script type="text/javascript">
<!--
var theForm = document.forms['form1'];
if (!theForm) {
theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
// -->
</script>
如上面的代码页面的html代码只有__VIEWSTATE,__EVENTTARGET和__EVENTARGUMENT3个隐藏控件,而我自己创建的aspx页面都包含__VIEWSTATEGENERATOR和__EVENTVALIDATION 这两个参数,我想问下上面的没有这两个参数是要怎么配置实现的,谢谢。
现在博客的人气这么差了?