我用prototype.js框架来做Ajax,可当我读取aspx的页面源代码时,怎么跟我用浏览器访问aspx文件时的源代码怎么不一样啊?
例如:test.aspx
   它的前台页面源代码是
 1使用Ajax读取aspx页面源代码<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" %>
 2使用Ajax读取aspx页面源代码
 3使用Ajax读取aspx页面源代码<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 4使用Ajax读取aspx页面源代码
 5使用Ajax读取aspx页面源代码<html xmlns="http://www.w3.org/1999/xhtml" >
 6使用Ajax读取aspx页面源代码<head runat="server">
 7使用Ajax读取aspx页面源代码    <title>无标题页</title>
 8使用Ajax读取aspx页面源代码</head>
 9使用Ajax读取aspx页面源代码<body>
10使用Ajax读取aspx页面源代码    <form id="form1" runat="server">
11使用Ajax读取aspx页面源代码    <div>
12使用Ajax读取aspx页面源代码        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" /><br />
13使用Ajax读取aspx页面源代码        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="login.aspx?ComeUrl=http://test.com.cn">HyperLink</asp:HyperLink>&nbsp;</div>
14使用Ajax读取aspx页面源代码    </form>
15使用Ajax读取aspx页面源代码</body>
16使用Ajax读取aspx页面源代码</html>
17使用Ajax读取aspx页面源代码
后台代码是
 1使用Ajax读取aspx页面源代码using System;
 2使用Ajax读取aspx页面源代码using System.Data;
 3使用Ajax读取aspx页面源代码using System.Configuration;
 4使用Ajax读取aspx页面源代码using System.Collections;
 5使用Ajax读取aspx页面源代码using System.Web;
 6使用Ajax读取aspx页面源代码using System.Web.Security;
 7使用Ajax读取aspx页面源代码using System.Web.UI;
 8使用Ajax读取aspx页面源代码using System.Web.UI.WebControls;
 9使用Ajax读取aspx页面源代码using System.Web.UI.WebControls.WebParts;
10使用Ajax读取aspx页面源代码using System.Web.UI.HtmlControls;
11使用Ajax读取aspx页面源代码using System.Drawing;
12使用Ajax读取aspx页面源代码using System.Drawing.Drawing2D;
13使用Ajax读取aspx页面源代码using System.Drawing.Imaging;
14使用Ajax读取aspx页面源代码
15使用Ajax读取aspx页面源代码public partial class test : System.Web.UI.Page
16





       我在它的page_load方法中写了如下字符

       
1使用Ajax读取aspx页面源代码private void Page_Load(object sender, EventArgs e)
2    }


当我用浏览器访问这个页面时,页面显示234,源代码如下
 1使用Ajax读取aspx页面源代码
 2使用Ajax读取aspx页面源代码
 3使用Ajax读取aspx页面源代码<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 4使用Ajax读取aspx页面源代码
 5使用Ajax读取aspx页面源代码<html xmlns="http://www.w3.org/1999/xhtml" >
 6使用Ajax读取aspx页面源代码<head><title>
 7使用Ajax读取aspx页面源代码    无标题页
 8使用Ajax读取aspx页面源代码</title></head>
 9使用Ajax读取aspx页面源代码<body>
10使用Ajax读取aspx页面源代码    <form name="form1" method="post" action="test.aspx" >




,但当我用prototype的 new Ajax.Request("test.aspx",{相关参数})来读取时,发现它读出的源代码竟然没有234,如下
读出来的源代码是
使用Ajax读取aspx页面源代码<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
使用Ajax读取aspx页面源代码
使用Ajax读取aspx页面源代码<html xmlns="http://www.w3.org/1999/xhtml" >
使用Ajax读取aspx页面源代码<head><title>
使用Ajax读取aspx页面源代码 无标题页
使用Ajax读取aspx页面源代码</title></head>
使用Ajax读取aspx页面源代码<body>
使用Ajax读取aspx页面源代码    <form name="form1" method="post" action="test.aspx" >





他读出的html源代码不是动态的html源代码,好像后面的page_load方法就没有运行一样?这怎么回事?

相关文章:

  • 2021-10-22
  • 2021-12-12
  • 2021-11-27
  • 2021-06-27
  • 2021-07-10
  • 2021-07-26
猜你喜欢
  • 2022-12-23
  • 2021-12-15
  • 2021-07-24
  • 2022-12-23
  • 2021-06-11
  • 2021-11-29
  • 2021-06-19
相关资源
相似解决方案