title: Multiselect dropdownlist with Checkbox in asp.net
body: <p>I'm using bootstrap multiselect dropdown list with checkbox.its working well without master form.but its not working with master forms:</p>
  
  <pre><code>&lt;asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"&gt;
  &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"&gt;&lt;/script&gt;
      &lt;link href="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.0.3/css/bootstrap.min.css"
          rel="stylesheet" type="text/css" /&gt;
      &lt;script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.0.3/js/bootstrap.min.js"&gt;&lt;/script&gt;
      &lt;link href="http://cdn.rawgit.com/davidstutz/bootstrap-multiselect/master/dist/css/bootstrap-multiselect.css"
          rel="stylesheet" type="text/css" /&gt;
      &lt;script src="http://cdn.rawgit.com/davidstutz/bootstrap-multiselect/master/dist/js/bootstrap-multiselect.js"
          type="text/javascript"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
          $(function() {
              $('[id*=lstFruits]').multiselect({
                  includeSelectAllOption: true
              });
          });
      &lt;/script&gt;
  &lt;/asp:Content&gt;
  &lt;asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"&gt;
   &lt;asp:ListBox ID="lstFruits" runat="server" SelectionMode="Multiple"&gt;
          &lt;asp:ListItem Text="Mango" Value="1" /&gt;
          &lt;asp:ListItem Text="Apple" Value="2" /&gt;
          &lt;asp:ListItem Text="Banana" Value="3" /&gt;
          &lt;asp:ListItem Text="Guava" Value="4" /&gt;
          &lt;asp:ListItem Text="Orange" Value="5" /&gt;
      &lt;/asp:ListBox&gt;
      &lt;asp:Button ID="Button1" Text="Submit" runat="server" OnClick="Submit" /&gt;
  
  &lt;/asp:Content&gt;
  </code></pre>
  
  <p>C# Code:</p>
  
  <pre><code> protected void Submit(object sender, EventArgs e)
      {
          string message = "";
          foreach (ListItem item in lstFruits.Items)
          {
              if (item.Selected)
              {
                  message += item.Text + " " + item.Value + "\\n";
              }
          }
          ClientScript.RegisterClientScriptBlock(this.GetType(), "alert", "alert('" + message + "');", true);
      }
  </code></pre>
  
  <p>I have referred </p>
  
  <p><a href="http://www.aspsnippets.com/Articles/Multiple-Select-MultiSelect-DropDownList-with-CheckBoxes-in-ASPNet-using-jQuery.aspx" rel="nofollow">this article:</a></p>
  
  <p>by using this code i have a drop down list on the Page but the drop down click event it not firing i couldn't see any list. 
  kindly assist me to solve this.</p>