我在母版页中使用Updatepanel的位置 [英] Where I Use Updatepanel In Master Page
本文介绍了我在母版页中使用Updatepanel的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
以下是我的母版页代码。我在我的母版页中使用updatepanel
The following is my master page code.where i use updatepanel in my master page
<%@ Master Language="VB" AutoEventWireup="true" CodeFile="Site.master.vb" Inherits="SiteMaster" %>
<!DOCTYPE html>
<html lang="en">
<head runat="server">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="Content/menu/styles.css">
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<script src="Content/menu/script.js"></script>
<title><%: Page.Title %> - Ajey Kamat : Educator and Mentor Assisting Students For Career in India and Abroad</title>
<asp:PlaceHolder runat="server">
<%: Scripts.Render("~/bundles/modernizr") %>
</asp:PlaceHolder>
<webopt:BundleReference runat="server" Path="~/Content/css" />
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
</head>
<body>
<form runat="server">
<asp:ScriptManager runat="server">
<Scripts>
<%--To learn more about bundling scripts in ScriptManager see http://go.microsoft.com/fwlink/?LinkID=301884 --%>
<%--Framework Scripts--%>
<asp:ScriptReference Name="MsAjaxBundle" />
<asp:ScriptReference Name="jquery" />
<asp:ScriptReference Name="bootstrap" />
<asp:ScriptReference Name="respond" />
<asp:ScriptReference Name="WebForms.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebForms.js" />
<asp:ScriptReference Name="WebUIValidation.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebUIValidation.js" />
<asp:ScriptReference Name="MenuStandards.js" Assembly="System.Web" Path="~/Scripts/WebForms/MenuStandards.js" />
<asp:ScriptReference Name="GridView.js" Assembly="System.Web" Path="~/Scripts/WebForms/GridView.js" />
<asp:ScriptReference Name="DetailsView.js" Assembly="System.Web" Path="~/Scripts/WebForms/DetailsView.js" />
<asp:ScriptReference Name="TreeView.js" Assembly="System.Web" Path="~/Scripts/WebForms/TreeView.js" />
<asp:ScriptReference Name="WebParts.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebParts.js" />
<asp:ScriptReference Name="Focus.js" Assembly="System.Web" Path="~/Scripts/WebForms/Focus.js" />
<asp:ScriptReference Name="WebFormsBundle" />
<%--Site Scripts--%>
</Scripts>
</asp:ScriptManager>
<script type="text/javascript">
$(window).scroll(function () {
if ($(this).scrollTop() == 0) {
$('.navbar-inverse').css({
'box-shadow': 'none',
'-moz-box-shadow': 'none',
'-webkit-box-shadow': 'none'
});
}
else {
$('.navbar-inverse').css({
'box-shadow': '0px 1px 20px #0b9ff3',
'-moz-box-shadow': '0px 1px 20px #0b9ff3',
'-webkit-box-shadow': '0px 1px 20px #0b9ff3'
});
}
});
</script>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="header-bar">
<img src="../img/Ajey kamat1.png" />
</div>
<div class="container">
<div id='cssmenu'>
<ul>
<li><a id="A1" runat="server" href="~/">Home</a></li>
<li>
<a id="A2" runat="server" href="#">Study Abroad</a>
<ul>
<li><a href="Abroad_Mbbs.aspx">M.B.B.S.Abroad</a></li>
<%--<li><a href="Abroad_Others.aspx">Others</a></li>--%>
</ul>
</li>
<li><a id="A3" runat="server" href="#">Scholarships</a>
<ul>
<li><a href="Scholarship_national.aspx">National</a></li>
<li><a href="Scholarship_international.aspx">International</a></li>
</ul>
</li>
<li><a id="A4" runat="server" href="~/Questions.aspx">Mock Test</a></li>
<li><a id="A5" runat="server" href="~/Register">Register</a></li>
<li><a id="A6" runat="server" href="~/Contact">Contact</a></li>
</ul>
</div>
</div>
</div>
<div class="container body-content">
<asp:ContentPlaceHolder ID="MainContent" runat="server">
</asp:ContentPlaceHolder>
<footer>
<div class="footer_body">
<div class="body_content">
<a href="http://www.ebusinessservices.in" target="_blank">
<h3><strong>Powered by </strong>eBusiness Services</h3>
</a>
</div>
</div>
</footer>
</div>
</form>
</body>
</html>
推荐答案
(window).scroll(function () {
if (
(window).scroll(function () { if (
(this).scrollTop() == 0) {
(this).scrollTop() == 0) {
('.navbar-inverse').css({
'box-shadow': 'none',
'-moz-box-shadow': 'none',
'-webkit-box-shadow': 'none'
});
}
else {
('.navbar-inverse').css({ 'box-shadow': 'none', '-moz-box-shadow': 'none', '-webkit-box-shadow': 'none' }); } else {
这篇关于我在母版页中使用Updatepanel的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文