Advertisement
Guest User

Untitled

a guest
Nov 1st, 2014
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
  2. <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4.  
  5. <html xmlns="http://www.w3.org/1999/xhtml">
  6. <head runat="server">
  7. <title></title>
  8. <style type="text/css">
  9.  
  10. .PnlDesign
  11. {
  12. border: solid 1px #000000;
  13. height: 150px;
  14. width: 330px;
  15. overflow-y:scroll;
  16. background-color: #EAEAEA;
  17. font-size: 15px;
  18. font-family: Arial;
  19. }
  20. .txtbox
  21. {
  22. background-image: url(../images/drpdwn.png);
  23. background-position: right top;
  24. background-repeat: no-repeat;
  25. cursor: pointer;
  26. cursor: hand;
  27. }
  28. </style>
  29. </head>
  30.  
  31.  
  32. <body>
  33. <form id="Form1" runat="server">
  34. &nbsp;<asp:ScriptManager ID="ScriptManager1" runat="server">
  35. </asp:ScriptManager>
  36. <div>
  37. <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
  38. <ContentTemplate>
  39. <asp:TextBox ID="txtCustomer" Text="Select Customers" runat="server" CssClass="txtbox"
  40. Height="20px" Width="322px"></asp:TextBox>
  41. <asp:Panel ID="PnlCust" runat="server" CssClass="PnlDesign" style="text-align:left">
  42. <asp:CheckBoxList ID="cblCustomerList" runat="server" AutoPostBack="true"
  43. onselectedindexchanged="cblCustomerList_SelectedIndexChanged">
  44. <asp:ListItem>Customer One</asp:ListItem>
  45. <asp:ListItem>Customer Two</asp:ListItem>
  46. <asp:ListItem>Customer Three</asp:ListItem>
  47. <asp:ListItem>Customer Four</asp:ListItem>
  48. <asp:ListItem>Customer Five</asp:ListItem>
  49. <asp:ListItem>Customer Six</asp:ListItem>
  50. <asp:ListItem>Customer Seven</asp:ListItem>
  51. </asp:CheckBoxList>
  52. </asp:Panel>
  53. <asp:Button ID="Button1" runat="server" Text="Reset" onclick="Button1_Click" />
  54. <br />
  55. <cc1:DropDownExtender ID="PceSelectCustomer" runat="server" TargetControlID="txtCustomer"
  56. DropDownControlID="PnlCust" HighlightBorderColor="ActiveCaptionText">
  57. </cc1:DropDownExtender>
  58.  
  59. </ContentTemplate>
  60. </asp:UpdatePanel>
  61. </div>
  62.  
  63. </form>
  64. </body>
  65. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement