如何使用母版页在asp.net中使用jquery。 。 。 [英] How to use jquery in asp.net using master page . . .

查看:43
本文介绍了如何使用母版页在asp.net中使用jquery。 。 。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了这个,但它没有给出预期的答案。 。 。



I did this but it didn't give expected ans . . .

<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"

    CodeBehind="Default.aspx.cs" Inherits="Real_Estate._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
<link href="jquery-ui-1.10.4.custom/css/custom-theme/jquery-ui-1.10.4.custom.min.css" type="text/css" rel="Stylesheet" />
<script src="jquery-ui-1.10.4.custom/js/jquery-1.10.2.js" type="text/javascript"></script>
<script src="jquery-ui-1.10.4.custom/js/jquery-ui-1.10.4.custom.min.js" type="text/javascript">
    $(function () {
        $("#tabs").tabs();

    }
     );
</script>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <asp:Label ID="Label1" runat="server" Text="Want to . . ."></asp:Label>
<div id="tabs">
<ul>
<li><a href="#tab-1">Buy</a></li>
<li>Sell</li>
<li>Rent</li>
</ul>
</div>
<div id="tab-1">
Hello World
</div>
</asp:Content>

推荐答案

function (){


#tabs)。tabs();

}
);
< / script >
< / asp:Content >
< asp:内容 ID = BodyContent runat = 服务器 ContentPlaceHolderID = MainContent >
< asp :标签 ID = Label1 runat = server 文字 = 想要。 。 。 > < / asp :标签 >
< div id = 标签 >
< ul >
< ; li > < a href = #tab-1 > 购买< ; / a > < / li >
< ; li > < / li >
< ; li > < / li >
< ; / ul >
< / div >
< <温泉n class =code-leadattribute> div id = tab-1 >
Hello World
< / div >
< / asp:Content > ;
("#tabs").tabs(); } ); </script> </asp:Content> <asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent"> <asp:Label ID="Label1" runat="server" Text="Want to . . ."></asp:Label> <div id="tabs"> <ul> <li><a href="#tab-1">Buy</a></li> <li>Sell</li> <li>Rent</li> </ul> </div> <div id="tab-1"> Hello World </div> </asp:Content>


以这种方式编写脚本:



导入文件在这里:



Write script in this way :

import your files Here :

<script>


这篇关于如何使用母版页在asp.net中使用jquery。 。 。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆