<%@ Page Language="VB" AutoEventWireup="false" CodeFile="SlidersAndRatingsDemo.aspx.vb" Inherits="SlidersAndRatingsDemo" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
   <title>Kontrolki Slider i Rating</title>

   <script type="text/javascript">
    
      function pageLoad() {
      }
    
   </script>

   <style type="text/css">
      .ratingStar
      {
         font-size: 0pt;
         width: 25px;
         height: 25px;
         margin: 0px;
         padding: 0px;
         cursor: pointer;
         display: block;
         background-repeat: no-repeat;
      }
      .filledRatingStar
      {
         background-color: Black;
      }
      .emptyRatingStar
      {
         background-color: Yellow;
      }
      .savedRatingStar
      {
         background-color: Green;
      }
   </style>
</head>
<body>
   <form id="form1" runat="server">
   <div>
      <asp:ScriptManager ID="ScriptManager1" runat="server" />
      Oceń Luciano Pavarottiego:
      <cc1:Rating ID="Rating1" runat="server" StarCssClass="ratingStar" FilledStarCssClass="filledRatingStar"
         EmptyStarCssClass="emptyRatingStar" WaitingStarCssClass="savedRatingStar" CurrentRating="3"
         MaxRating="10" />
      <br />
      <br />
      Jak głośno? : 
      <asp:TextBox ID="txtHiddenSlider" runat="server"></asp:TextBox>
      <asp:TextBox ID="txtVisibleSlider" runat="server"></asp:TextBox>      
      <cc1:SliderExtender ID="SliderExtender1" runat="server" 
         TargetControlID="txtHiddenSlider" BoundControlID="txtVisibleSlider" />
      <br />
      <br />
      <asp:Label ID="lblChoices" runat="server"></asp:Label>
      <asp:Button ID="btnSubmit" runat="server" Text="Oceń" OnClick="btnSubmit_Click" />
   </div>
   </form>
</body>
</html>
