Refering to this thread
I need to register css/javascript in update panel. The above is working fine. But now i have bootstrap .. How to do so?
<head> Script for dropdown list <link href="assets/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" /><link href="assets/global/plugins/bootstrap-select/css/bootstrap-select.min.css" rel="stylesheet" type="text/css" /></head><body ><form id="form1" runat="server"><asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> My dropdown list inside update panel<asp:UpdatePanel ID="UpdatePanel2" runat="server"><ContentTemplate><asp:DropDownList ID="DrpABC" runat="server" CssClass="bs-select form-control" > </asp:DropDownList></ContentTemplate></asp:UpdatePanel></body >
<script>$(function () {
initdropdown();
})
function initdropdown() {
$('#DrpABC').bootstrap-select.min.css();
}</script>
<asp:UpdatePanel ID="UpdatePanel2" runat="server"><ContentTemplate><script>
Sys.Application.add_load(initdropdown);</script><asp:DropDownList ID="DrpABC" runat="server" CssClass="bs-select form-control" > </asp:DropDownList>
<asp:ListItem>Item1</asp:ListItem><asp:ListItem>Item2</asp:ListItem><asp:ListItem>Item3</asp:ListItem></asp:DropDownList></ContentTemplate></asp:UpdatePanel>
I tried the above its not working ...
How to APPLY THE ABOVE CSS FOR DROPDOWN LIST