初学者问题
f.aspx <%@Page Language="c#" Debug="true"%> <% for (int i=1; i<=200;i++) { //Response.Write ( i+"<br>"); if (i==20) { string FileName; FileName=Request.PhysicalApplicationPath+"c.aspx"; Response.WriteFile(FileName); Response.End(); } } %> c.aspx <html> <head></head> <body bgcolor="#6699dd"><h2 align ="center"></h2> <hr> <form action="d.aspx" method="post"> <p>姓名:<input type="text" size="20" name="Name"></p> <p>兴趣:<input type="text" size="20" name="Love"> <p><input type="submit" name="B1" value="提交"></p></form> <p></p> <a href="e.aspx?name=chuang&sex=男">1111</a> <%=("<a href=e.aspx?name=chuang&sex=男>222</a>")%></body></html> 我运行f.aspx和运行c.aspx,为什么显示的结果不同, f.aspx有乱码,还少了显示222的;c.aspx运行一切正常 |