这是在 masterpage 中用于下拉的插件
<script src="../Scripts/jquery-1.9.1.js" type="text/javascript"></script>
<ul class="nav pull-right custom-dropdown">
<li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown"><asp:Label ID="lblUserName" runat="server"></asp:Label>
<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><asp:LinkButton ID="lnkprofile" CssClass="lnkButton" Text="Profile" PostBackUrl="~/Admin/ViewProfile.aspx" runat="server"></asp:LinkButton></li>
<li><asp:LinkButton ID="lnkchangepwd" CssClass="lnkButton" Text="Change Password" PostBackUrl="~/Admin/ChangePassword.aspx" runat="server"></asp:LinkButton></li>
<li><asp:LinkButton ID="lnkSignOut" CssClass="lnkButton" Text="Sign out" runat="server" OnClick="LnkSignOut_Click"></asp:LinkButton></li>
</ul>
</li>
</ul>
我想在内容页面中使用相同的插件
<script src="../Scripts/jquery-1.9.1.js" type="text/javascript"></script>
<script src="../Scripts/jquery-ui-1.10.3.custom.min.js" type="text/javascript"></script>
<link href="Scripts/jquery-ui.css" rel="stylesheet" type="text/css" />
$("#<%=txtbirth.ClientID %>").datepicker({
changeMonth: true,
changeYear: true,
yearRange: '1960:2030',
showOn: 'button',
buttonImage: "images/1315298127_calendar_1.png",
buttonImageOnly: true
});
但它不是继承