$("#feeds").load("feeds.aspx", {limit: 25}, function(){alert("The last 25 entries in the feed have been loaded");});//导入动态内容怎么加载不了?
我想在feedsdiv里加载feeds.aspx页面,为什么没反应?load里面的详细参数是怎样的?

解决方案 »

  1.   

    http://www.cnjquery.com/html/JQueryjiaocheng/200808/16-1083.html
      

  2.   

    $(document).ready(function()
     {
    $("#feeds").load("feeds.aspx", {limit: 25}, function(){alert("The last 25 entries in the feed have been loaded");});//导入动态内容 
    }
    这样
      

  3.   

    http://space.cnblogs.com/group/topic/3483/
      

  4.   

    ·双线主机 100M/35元/年,免费送数据库(自选MY/MSSQL)
    ·支持ASP+ASP.NET+PHP+HTML
    ·详情请访问:http://www.515dns.com
    ·QQ:287895593
      

  5.   

    可以加载aspx页面吗?因为aspx还隐含一个cs页面这样是加载不了的
    {limit: 25}, 是什么意思?
      

  6.   

    {limit: 25} 是传输的数据
      

  7.   

    请求<%@ Page Language="C#" AutoEventWireup="true" CodeFile="loadMethod.aspx.cs" Inherits="ajax_jquery_loadMethod" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>无标题页</title>
        <script src="jquery-1.2.6.min.js"></script>
        <script>
        $(document).ready(function() {
        $("#btn").click(function() {
            $("#feeds").text("正在加载...");         
         $("#feeds").load("default.aspx", {limit:$("#txt").val()}, function(){alert("The last 25 entries in the feed have been loaded");});
        });
        });
        </script>
    </head>
    <body>
        <form id="form1" runat="server">    
        传递参数:<input type="text" value="25" id="txt" />&nbsp;&nbsp;&nbsp;&nbsp;
        <input type="button" id="btn" value="获取响应" />
        <div id='feeds'></div>
        </form>
    </body>
    </html>响应
    using System;
    using System.Data;
    using System.Configuration;
    using System.Collections;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Web.UI.HtmlControls;public partial class ajax_jquery_Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.Clear();
            string limit = string.IsNullOrEmpty(Request.Form["limit"]) ? "" : Request.Form["limit"];
            if (limit == "25")
            {
                Response.Write("&nbsp;&nbsp;^-^&nbsp;&nbsp;&nbsp;&nbsp;您传递的参数是25");
            }
            else
            {
                Response.Write("传递的参数是" + limit);
            }
            Response.End();
        }
    }