<%@ Page Language="C#" MasterPageFile="~/First.Master" AutoEventWireup="true" CodeBehind="JQueryDemo2.aspx.cs" Inherits="MasterPage.Ajax.JQueryDemo2" Title="無(wú)標(biāo)題頁(yè)" %><asp:Content ID="Content1" ContentPlaceHolderID="ContentCss" runat="server"><script type="text/javascript" src="../JS/jquery-1.3.2.js"></script><%--<script type="text/javascript" src="../JS/test_jquery.js"></script>--%><script type="text/javascript"> $(function(){ $("#ShowData").load("demol.htm"); })</script></asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"><div id="ShowData" > </div><input id="btnLoad" type="button" value="LoadHtml" /></asp:Content>在應(yīng)用母版頁(yè)的頁(yè)面上用jquery.load實(shí)現(xiàn)不了嗎我在非母版頁(yè)測(cè)試通過(guò)了
1 回答

BIG陽(yáng)
TA貢獻(xiàn)1859條經(jīng)驗(yàn) 獲得超6個(gè)贊
使用MasterPage時(shí)ID會(huì)變的.
如:ctl00_userContentPlaceHolder_ShowData
- 1 回答
- 0 關(guān)注
- 350 瀏覽
添加回答
舉報(bào)
0/150
提交
取消