日期:2014-05-20  浏览次数:20464 次

Ajax导致Request.Form不可用

<!DOCTYPE   HTML   PUBLIC   "-//W3C//DTD   HTML   4.0   Transitional//EN "   >
<HTML>
<HEAD>
<title> ManagementMain </title>
<meta   content= "Microsoft   Visual   Studio   .NET   7.1 "   name= "GENERATOR ">
<meta   content= "C# "   name= "CODE_LANGUAGE ">
<meta   content= "JavaScript "   name= "vs_defaultClientScript ">
<meta   content= "http://schemas.microsoft.com/intellisense/ie5 "   name= "vs_targetSchema ">
<script   language= "javascript "   src= "default.js ">

</script>
</HEAD>
<body   MS_POSITIONING= "GridLayout ">
<TABLE   id= "Table1 "   style= "Z-INDEX:   102;   LEFT:   8px;   WIDTH:   544px;   POSITION:   absolute;   TOP:   8px;   HEIGHT:   36px "
cellSpacing= "0 "   cellPadding= "0 "   width= "544 "   border= "0 ">
<TR>
<TD> <A   onmousemove= "javascript:GetAhyMac() "   style= "TEXT-DECORATION:   none "   href= "# "> 权根管理 </A> </TD>
<TD> <A   onmousemove= "javascript:GetBusMac() "   style= "TEXT-DECORATION:   none "   href= "# "> 业务管理 </A> </TD>
<TD> <A   onmousemove= "javascript:GetCompanysMac() "   style= "TEXT-DECORATION:   none "   href= "# "> 客户公司管理 </A> </TD>
<TD> <A   onmousemove= "javascript:GetCtrMac() "   style= "TEXT-DECORATION:   none "   href= "# "> 客户管理 </A> </TD>
<TD> <A   onmousemove= "javascript:GetDmtMac() "   style= "TEXT-DECORATION:   none "   href= "# "> 部门管理 </A> </TD>
<TD> <A   onmousemove= "javascript:GetElyMac() "   style= "TEXT-DECORATION:   none "   href= "# "> 员工管理 </A> </TD>
</TR>
</TABLE>
<form   name= "Form1 "   method= "post "   action= "Managementlist.aspx "   id= "Form1 "   style= "Z-INDEX:   102;   LEFT:   8px;   WIDTH:   704px;   POSITION:   absolute;   TOP:   56px;   HEIGHT:   19px ">
<input   type= "hidden "   name= "__VIEWSTATE "   value= "dDwtNjU0MzcyMTk1Ozs+lYvnfOCSx9QkG0N9zrNbFoCWLAo= "   />
<script   type= "text/javascript "   src= "/main/ajax/common.ashx "> </script>

<script   type= "text/javascript "   src= "/main/ajax/AjaxSample.DemoMethods,main.ashx "> </script>


</form>
</body>
</HTML>
----------------------------------------
<input   type= "hidden "   name= "__VIEWSTATE "   value= "dDwtNjU0MzcyMTk1Ozs+lYvnfOCSx9QkG0N9zrNbFoCWLAo= "   />

<input> 的内容全部改变了,本来是
<input   name= 'EmplName '   type=text   value= ' "+ely.EmployeeName+ " '/> "
被ajax引用后输出的源代码发了改变,如果我还在这页面引用   Request.Form[ "EmplName "]就取不到值是不是?