title: How to expand Jquery Slider Panel programatically?
body: <p>I have JQuery Silder panel for Login | Register option. for referencing i have include demo of this slider <a href="http://web-kreation.com/tutorials/nice-clean-sliding-login-panel-built-with-jquery/" rel="nofollow">Jquery Login | Register Slider Panel</a></p>
  
  <p>the actually problem was how to expand programatically this slider when located Literal control have value in Login Section or Register New account section. for understanding this problem i putting my design code.
  </p>
  
  <pre><code>    &lt;asp:Panel ID="Panel_Login_Register" runat="server" CssClass="Panel_Slide"&gt;
      &lt;div id="toppanel"&gt;
      &lt;div id="panel"&gt;
          &lt;div class="content clearfix"&gt;
              &lt;asp:Panel ID="Panel_Welcome" runat="server" CssClass="left"&gt;
                  &lt;h1&gt;Welcome to Om Investment&lt;/h1&gt;
                  &lt;p class="grey"&gt;Om Investment Stock Market Research Trading &amp;amp; Advisory, the most successful market
                  trading team and has predicted the market direction always ahead of others, our
                  powerful and high volume Market Gains trading team will deliver high returns to
                  the Capital invested by clients, We have a consistent success ratio genuine more than
                  80% in every type of Market.&lt;/p&gt;
              &lt;/asp:Panel&gt;
              &lt;asp:Panel ID="Panel_Login" runat="server" CssClass="left" Width="200px" DefaultButton="btnlogin"&gt;
                      &lt;h1&gt;Member Login&lt;/h1&gt;
                       &lt;asp:Label ID="Label2" runat="server" Text="Username:" CssClass="grey" AssociatedControlID="txtusername"&gt;&lt;/asp:Label&gt;
                        &lt;cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender4" runat="server" TargetControlID="txtusername" WatermarkText="Enter username here"/&gt;
                      &lt;asp:TextBox ID="txtusername" runat="server" CssClass="field" ValidationGroup="Login"&gt;&lt;/asp:TextBox&gt;
                    &lt;asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="&lt;span style='color:Black'&gt;&lt;b&gt;Required Field Missing&lt;/b&gt;&lt;br /&gt;Username is required.&lt;/span&gt;"
                                                  ControlToValidate="txtusername" ValidationGroup="Login" Display="None" SetFocusOnError="true"&gt;&lt;/asp:RequiredFieldValidator&gt;
                                              &lt;cc1:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server" TargetControlID="RequiredFieldValidator2"
                                                  Width="200px" HighlightCssClass="highlight" WarningIconImageUrl="images/1329542890_dialog-warning.png"
                                                  CloseImageUrl="images/close.gif"&gt;
                                              &lt;/cc1:ValidatorCalloutExtender&gt;
                      &lt;asp:Label ID="Label3" runat="server" Text="Password:" CssClass="grey" AssociatedControlID="txtpassword"&gt;&lt;/asp:Label&gt;
                       &lt;cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender12" runat="server" TargetControlID="txtpassword"
                                                  WatermarkText="123456789"/&gt;
                      &lt;asp:TextBox ID="txtpassword" runat="server" CssClass="field" ValidationGroup="Login" TextMode="Password"&gt;&lt;/asp:TextBox&gt;
                      &lt;asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="&lt;span style='color:Black'&gt;&lt;b&gt;Required Field Missing&lt;/b&gt;&lt;br /&gt;Password is required.&lt;/span&gt;"
                                                      ControlToValidate="txtpassword" ValidationGroup="Login" Display="None"&gt;&lt;/asp:RequiredFieldValidator&gt;
                                              &lt;cc1:ValidatorCalloutExtender ID="ValidatorCalloutExtender3" runat="server" TargetControlID="RequiredFieldValidator3"
                                                  Width="200px" HighlightCssClass="highlight" WarningIconImageUrl="images/1329542890_dialog-warning.png"
                                                  CloseImageUrl="images/close.gif"&gt;
                                              &lt;/cc1:ValidatorCalloutExtender&gt;&lt;br /&gt;
                      &lt;asp:CheckBox ID="chk_remember" runat="server"/&gt;&amp;nbsp;&lt;asp:Label ID="Label4" runat="server" Text="Remeber Me ?" CssClass="grey"&gt;&lt;/asp:Label&gt;
                      &lt;div class="clear"&gt;&lt;/div&gt;
                      &lt;asp:Button ID="btnlogin" runat="server" Text="Login" CssClass="bt_login" ValidationGroup="Login" OnClick="btnlogin_Click" /&gt;
                      &lt;a class="lost-pwd" href="password_recover.aspx"&gt; Lost your password ?&lt;/a&gt;
                      &lt;div class="clear"&gt;&lt;/div&gt;
                      &lt;p class="grey"&gt;&lt;asp:Literal ID="ltr_error" runat="server"&gt;&lt;/asp:Literal&gt;&lt;/p&gt;
              &lt;/asp:Panel&gt;
       &lt;asp:Panel ID="Panel_Register" runat="server" CssClass="left right" DefaultButton="btn_register" Width="356px"&gt;            
                      &lt;h1&gt;Create New Account&lt;/h1&gt;             
        &lt;p class="grey"&gt;(All the fields are compulsory)&lt;/p&gt;
             &lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;asp:Label id="Label6" runat="server" Text="Your Name*" AssociatedControlID="txtname" CssClass="grey"&gt;&lt;/asp:Label&gt; &lt;cc1:TextBoxWatermarkExtender id="TextBoxWatermarkExtender5" watermarkText="Enter your name" runat="server" TargetControlID="txtname"&gt;
                &lt;/cc1:TextBoxWatermarkExtender&gt; &lt;cc1:FilteredTextBoxExtender id="FilteredTextBoxExtender2" runat="server" TargetControlID="txtname" ValidChars=" ,." FilterType="UppercaseLetters,LowercaseLetters,Custom"&gt;
                &lt;/cc1:FilteredTextBoxExtender&gt;&lt;/td&gt;&lt;/tr&gt;
                &lt;tr&gt;&lt;td&gt;&lt;asp:TextBox id="txtname" runat="server" CssClass="field" ValidationGroup="SignUp" MaxLength="50"&gt;&lt;/asp:TextBox&gt; &lt;asp:RequiredFieldValidator id="RequiredFieldValidator5" runat="server" ValidationGroup="SignUp" SetFocusOnError="true" Display="None" ControlToValidate="txtname" ErrorMessage="&lt;span style='color:Black'&gt;&lt;b&gt;Required Field Missing&lt;/b&gt;&lt;br /&gt;Your name is required.&lt;/span&gt;"&gt;&lt;/asp:RequiredFieldValidator&gt; &lt;cc1:ValidatorCalloutExtender id="ValidatorCalloutExtender4" runat="server" TargetControlID="RequiredFieldValidator5" Width="200px" CloseImageUrl="images/close.gif" WarningIconImageUrl="images/1329542890_dialog-warning.png" HighlightCssClass="highlight"&gt;
                          &lt;/cc1:ValidatorCalloutExtender&gt;&lt;/td&gt;&lt;/tr&gt;                                      
              &lt;tr&gt;&lt;td&gt;&lt;asp:Label id="Label7" runat="server" Text="Your Username*" AssociatedControlID="txtusername1" CssClass="grey"&gt;&lt;/asp:Label&gt; &lt;cc1:TextBoxWatermarkExtender id="TextBoxWatermarkExtender6" watermarkText="Enter your username" runat="server" TargetControlID="txtusername1"&gt;
              &lt;/cc1:TextBoxWatermarkExtender&gt; &lt;cc1:FilteredTextBoxExtender id="FilteredTextBoxExtender3" runat="server" TargetControlID="txtusername" FilterType="UppercaseLetters,LowercaseLetters,Numbers,Custom"&gt;
                &lt;/cc1:FilteredTextBoxExtender&gt;&lt;/td&gt;&lt;/tr&gt;
               &lt;tr&gt;&lt;td&gt;&lt;asp:TextBox id="txtusername1" runat="server" CssClass="field" ValidationGroup="SignUp" MaxLength="50"&gt;&lt;/asp:TextBox&gt;&lt;asp:CustomValidator ID="CustomValidator1" runat="server" ControlToValidate="txtusername1" OnServerValidate="CustomValidator1_ServerValidate" SetFocusOnError="True" ValidationGroup="SignUp" CssClass="grey" ErrorMessage="&lt;span style='color:Gray'&gt;Username is already exist&lt;/span&gt;"&gt;&lt;/asp:CustomValidator&gt;&lt;/td&gt;&lt;/tr&gt;
               &lt;tr&gt;&lt;td&gt;&lt;asp:RequiredFieldValidator id="RequiredFieldValidator6" runat="server" ValidationGroup="SignUp" SetFocusOnError="true" Display="None" ControlToValidate="txtusername1" ErrorMessage="&lt;span style='color:Black'&gt;&lt;b&gt;Required Field Missing&lt;/b&gt;&lt;br /&gt;Your username is required.&lt;/span&gt;"&gt;&lt;/asp:RequiredFieldValidator&gt; &lt;cc1:ValidatorCalloutExtender id="ValidatorCalloutExtender7" runat="server" TargetControlID="RequiredFieldValidator6" Width="200px" CloseImageUrl="images/close.gif" WarningIconImageUrl="images/1329542890_dialog-warning.png" HighlightCssClass="highlight"&gt;
                                                        &lt;/cc1:ValidatorCalloutExtender&gt;&lt;/td&gt;&lt;/tr&gt;
               &lt;tr&gt;&lt;td&gt;&lt;asp:Label id="Label9" runat="server" Text="Your Account Password*" AssociatedControlID="txtpass" CssClass="grey"&gt;&lt;/asp:Label&gt; &lt;cc1:FilteredTextBoxExtender id="FilteredTextBoxExtender4" runat="server" TargetControlID="txtpass" ValidChars="." FilterType="UppercaseLetters,LowercaseLetters,Numbers,Custom" InvalidChars=" ,'"&gt;
                &lt;/cc1:FilteredTextBoxExtender&gt; &lt;cc1:TextBoxWatermarkExtender id="TextBoxWatermarkExtender7" watermarkText="1234567890" runat="server" TargetControlID="txtpass"&gt;
              &lt;/cc1:TextBoxWatermarkExtender&gt;&lt;/td&gt;&lt;/tr&gt;
              &lt;tr&gt;&lt;td&gt;&lt;asp:TextBox id="txtpass" runat="server" CssClass="field" ValidationGroup="SignUp" MaxLength="15" TextMode="Password"&gt;&lt;/asp:TextBox&gt; &lt;cc1:PasswordStrength id="PasswordStrength1" runat="server" TargetControlID="txtpass" RequiresUpperAndLowerCaseCharacters="false" MinimumSymbolCharacters="0" MinimumNumericCharacters="0" StrengthStyles="TextIndicator_TextBox1_Strength1;TextIndicator_TextBox1_Strength2;TextIndicator_TextBox1_Strength3;TextIndicator_TextBox1_Strength4;TextIndicator_TextBox1_Strength5" TextStrengthDescriptions="Very Poor;Weak;Average;Strong;Excellent" HelpStatusLabelID="TextBox1_HelpLabel" PrefixText="Strength:" PreferredPasswordLength="10" StrengthIndicatorType="Text" DisplayPosition="RightSide"&gt;&lt;/cc1:PasswordStrength&gt; &lt;asp:RequiredFieldValidator id="RequiredFieldValidator7" runat="server" ValidationGroup="SignUp" SetFocusOnError="true" Display="None" ControlToValidate="txtpass" ErrorMessage="&lt;span style='color:Black'&gt;&lt;b&gt;Required Field Missing&lt;/b&gt;&lt;br /&gt;Your account password is required.&lt;/span&gt;"&gt;&lt;/asp:RequiredFieldValidator&gt; &lt;cc1:ValidatorCalloutExtender id="ValidatorCalloutExtender8" runat="server" TargetControlID="RequiredFieldValidator7" Width="200px" CloseImageUrl="images/close.gif" WarningIconImageUrl="images/1329542890_dialog-warning.png" HighlightCssClass="highlight"&gt;
                                                         &lt;/cc1:ValidatorCalloutExtender&gt;&lt;/td&gt;&lt;/tr&gt;
              &lt;tr&gt;&lt;td&gt;&lt;asp:Label id="Label10" runat="server" Text="Confirm Password*" AssociatedControlID="txtcpass" CssClass="grey"&gt;&lt;/asp:Label&gt;&lt;cc1:TextBoxWatermarkExtender id="TextBoxWatermarkExtender8" watermarkText="1234567890" runat="server" TargetControlID="txtcpass"&gt;
              &lt;/cc1:TextBoxWatermarkExtender&gt; &lt;cc1:FilteredTextBoxExtender id="FilteredTextBoxExtender5" runat="server" TargetControlID="txtpass" ValidChars="." FilterType="UppercaseLetters,LowercaseLetters,Numbers,Custom" InvalidChars=" ,'"&gt;
                &lt;/cc1:FilteredTextBoxExtender&gt;&lt;/td&gt;&lt;/tr&gt;
              &lt;tr&gt;&lt;td&gt;&lt;asp:TextBox id="txtcpass" runat="server" CssClass="field" ValidationGroup="SignUp" MaxLength="15" TextMode="Password"&gt;&lt;/asp:TextBox&gt; &lt;asp:RequiredFieldValidator id="RequiredFieldValidator8" runat="server" ValidationGroup="SignUp" SetFocusOnError="true" Display="None" ControlToValidate="txtcpass" ErrorMessage="&lt;span style='color:Black'&gt;&lt;b&gt;Required Field Missing&lt;/b&gt;&lt;br /&gt;Confirm password is required.&lt;/span&gt;"&gt;&lt;/asp:RequiredFieldValidator&gt; &lt;asp:CompareValidator id="CompareValidator1" runat="server" ValidationGroup="SignUp" SetFocusOnError="true" Display="None" ControlToValidate="txtcpass" ErrorMessage="&lt;span style='color:Black'&gt;&lt;b&gt;Entered Field is Invalid&lt;/b&gt;&lt;br /&gt;Your new password and confirm password doesn't mathched.&lt;/span&gt;" ControlToCompare="txtpass"&gt;&lt;/asp:CompareValidator&gt; &lt;cc1:ValidatorCalloutExtender id="ValidatorCalloutExtender9" runat="server" TargetControlID="RequiredFieldValidator8" Width="200px" CloseImageUrl="images/close.gif" WarningIconImageUrl="images/1329542890_dialog-warning.png" HighlightCssClass="highlight"&gt;
                                                         &lt;/cc1:ValidatorCalloutExtender&gt; &lt;cc1:ValidatorCalloutExtender id="ValidatorCalloutExtender11" runat="server" TargetControlID="CompareValidator1" Width="200px" CloseImageUrl="images/close.gif" WarningIconImageUrl="images/1329542890_dialog-warning.png" HighlightCssClass="highlight"&gt;
                                                         &lt;/cc1:ValidatorCalloutExtender&gt;&lt;/td&gt;&lt;/tr&gt;
            &lt;tr&gt;&lt;td&gt;&lt;asp:Label id="Label12" runat="server" Text="Your Birth Date*" AssociatedControlID="txtbdate" CssClass="grey"&gt;&lt;/asp:Label&gt; &lt;cc1:TextBoxWatermarkExtender id="TextBoxWatermarkExtender10" watermarkText="Enter your birthdate" runat="server" TargetControlID="txtbdate"&gt;
            &lt;/cc1:TextBoxWatermarkExtender&gt;&lt;/td&gt;&lt;/tr&gt;
            &lt;tr&gt;&lt;td&gt;&lt;asp:TextBox id="txtbdate" runat="server" CssClass="field" ValidationGroup="SignUp"&gt;&lt;/asp:TextBox&gt; &lt;asp:RequiredFieldValidator id="RequiredFieldValidator10" runat="server" ValidationGroup="SignUp" SetFocusOnError="true" Display="None" ControlToValidate="txtbdate" ErrorMessage="&lt;span style='color:Black'&gt;&lt;b&gt;Required Field Missing&lt;/b&gt;&lt;br /&gt;Your birthdate is required.&lt;/span&gt;"&gt;&lt;/asp:RequiredFieldValidator&gt; &lt;asp:RegularExpressionValidator id="RegularExpressionValidator3" runat="server" ValidationGroup="SignUp" SetFocusOnError="true" Display="None" ControlToValidate="txtbdate" ErrorMessage="&lt;span style='color:Black'&gt;&lt;b&gt;Entered Field is Invalid&lt;/b&gt;&lt;br/&gt;Birth date format should be like: DD/MM/yyyy&lt;/span&gt;" ValidationExpression="^(((0[1-9]|[12]\d|3[01])\/(0[13578]|1[02])\/((19|[2-9]\d)\d{2}))|((0[1-9]|[12]\d|30)\/(0[13456789]|1[012])\/((19|[2-9]\d)\d{2}))|((0[1-9]|1\d|2[0-8])\/02\/((19|[2-9]\d)\d{2}))|(29\/02\/((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))))$"&gt;&lt;/asp:RegularExpressionValidator&gt; &lt;cc1:CalendarExtender id="CalendarExtender1" runat="server" TargetControlID="txtbdate" PopupButtonID="img_cal" Format="dd/MM/yyyy"&gt;
                &lt;/cc1:CalendarExtender&gt; &lt;cc1:MaskedEditExtender id="MaskedEditExtender5" runat="server" TargetControlID="txtbdate" ErrorTooltipEnabled="True" AcceptNegative="Left" DisplayMoney="Left" MaskType="Date" OnInvalidCssClass="MaskedEditError" OnFocusCssClass="MaskedEditFocus" MessageValidatorTip="true" Mask="99/99/9999"&gt;&lt;/cc1:MaskedEditExtender&gt; &lt;cc1:ValidatorCalloutExtender id="ValidatorCalloutExtender13" runat="server" TargetControlID="RequiredFieldValidator10" Width="200px" CloseImageUrl="images/close.gif" WarningIconImageUrl="images/1329542890_dialog-warning.png" HighlightCssClass="highlight"&gt;
                                                         &lt;/cc1:ValidatorCalloutExtender&gt; &lt;cc1:ValidatorCalloutExtender id="ValidatorCalloutExtender14" runat="server" TargetControlID="RegularExpressionValidator3" Width="200px" CloseImageUrl="images/close.gif" WarningIconImageUrl="images/1329542890_dialog-warning.png" HighlightCssClass="highlight"&gt;
                                                         &lt;/cc1:ValidatorCalloutExtender&gt;&lt;/td&gt;&lt;/tr&gt;
            &lt;tr&gt;&lt;td&gt;&lt;asp:Label id="Label11" runat="server" Text="Your e-mail*" AssociatedControlID="txtemail" CssClass="grey"&gt;&lt;/asp:Label&gt;&lt;cc1:TextBoxWatermarkExtender id="TextBoxWatermarkExtender9" watermarkText="Enter your email" runat="server" TargetControlID="txtemail"&gt;
            &lt;/cc1:TextBoxWatermarkExtender&gt;&lt;/td&gt;&lt;/tr&gt;
            &lt;tr&gt;
            &lt;td&gt;&lt;asp:TextBox id="txtemail" runat="server" CssClass="field" ValidationGroup="SignUp" MaxLength="50"&gt;&lt;/asp:TextBox&gt;&lt;asp:CustomValidator ID="CustomValidator2" runat="server" ValidationGroup="SignUp" ControlToValidate="txtemail" SetFocusOnError="true" OnServerValidate="CustomValidator2_ServerValidate" CssClass="grey" ErrorMessage="&lt;span style='color:Gray'&gt;Email is already exist&lt;/span&gt;"&gt;&lt;/asp:CustomValidator&gt;&lt;/td&gt;&lt;/tr&gt;
            &lt;tr&gt;&lt;td&gt;&lt;asp:RequiredFieldValidator id="RequiredFieldValidator9" runat="server" ValidationGroup="SignUp" SetFocusOnError="true" Display="None" ControlToValidate="txtemail" ErrorMessage="&lt;span style='color:Black'&gt;&lt;b&gt;Required Field Missing&lt;/b&gt;&lt;br /&gt;Your email is required.&lt;/span&gt;"&gt;&lt;/asp:RequiredFieldValidator&gt; &lt;asp:RegularExpressionValidator id="RegularExpressionValidator2" runat="server" ValidationGroup="SignUp" SetFocusOnError="true" Display="None" ControlToValidate="txtemail" ErrorMessage="&lt;span style='color:Black'&gt;&lt;b&gt;Entered Field is Invalid&lt;/b&gt;&lt;br/&gt;Email format should be like: name@domain.com&lt;/span&gt;" ValidationExpression="^[\w-\.]{1,}\@([\da-zA-Z-]{1,}\.){1,}[\da-zA-Z-]{2,6}$"&gt;&lt;/asp:RegularExpressionValidator&gt; &lt;cc1:ValidatorCalloutExtender id="ValidatorCalloutExtender10" runat="server" TargetControlID="RequiredFieldValidator9" Width="200px" CloseImageUrl="images/close.gif" WarningIconImageUrl="images/1329542890_dialog-warning.png" HighlightCssClass="highlight"&gt;
                                                         &lt;/cc1:ValidatorCalloutExtender&gt; &lt;cc1:ValidatorCalloutExtender id="ValidatorCalloutExtender12" runat="server" TargetControlID="RegularExpressionValidator2" Width="200px" CloseImageUrl="images/close.gif" WarningIconImageUrl="images/1329542890_dialog-warning.png" HighlightCssClass="highlight"&gt;
                                                         &lt;/cc1:ValidatorCalloutExtender&gt;&lt;/td&gt;&lt;/tr&gt;
            &lt;tr&gt;&lt;td&gt;&lt;asp:Label id="Label13" runat="server" Text="Your Phone no*" AssociatedControlID="txtphoneno" CssClass="grey"&gt;&lt;/asp:Label&gt; &lt;cc1:TextBoxWatermarkExtender id="TextBoxWatermarkExtender11" watermarkText="Enter your phone no" runat="server" TargetControlID="txtphoneno"&gt;
            &lt;/cc1:TextBoxWatermarkExtender&gt; &lt;cc1:FilteredTextBoxExtender id="FilteredTextBoxExtender6" runat="server" TargetControlID="txtphoneno" FilterType="Numbers"&gt;
                &lt;/cc1:FilteredTextBoxExtender&gt;&lt;/td&gt;&lt;/tr&gt;
            &lt;tr&gt;
            &lt;td&gt;&lt;asp:TextBox id="txtphoneno" runat="server" CssClass="field" ValidationGroup="SignUp" MaxLength="10"&gt;&lt;/asp:TextBox&gt;&lt;asp:CustomValidator ID="CustomValidator3" runat="server" ValidationGroup="SignUp" ControlToValidate="txtphoneno" SetFocusOnError="true" OnServerValidate="CustomValidator3_ServerValidate" CssClass="grey" ErrorMessage="&lt;span style='color:Gray'&gt;Phone no is already exist&lt;/span&gt;"&gt;&lt;/asp:CustomValidator&gt;&lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;&lt;td&gt;&lt;asp:RequiredFieldValidator id="RequiredFieldValidator11" runat="server" ValidationGroup="SignUp" SetFocusOnError="true" Display="None" ControlToValidate="txtphoneno" ErrorMessage="&lt;span style='color:Black'&gt;&lt;b&gt;Required Field Missing&lt;/b&gt;&lt;br /&gt;Your phone no is required.&lt;/span&gt;"&gt;&lt;/asp:RequiredFieldValidator&gt;&lt;asp:RegularExpressionValidator id="RegularExpressionValidator4" runat="server" ValidationGroup="SignUp" SetFocusOnError="true" Display="None" ControlToValidate="txtphoneno" ErrorMessage="&lt;span style='color:Black'&gt;&lt;b&gt;Entered Field is Invalid&lt;/b&gt;&lt;br/&gt;Phone no format should like : 9000000098&lt;br/&gt; +91 Not Needed&lt;span&gt;" ValidationExpression="^((\\+91-?)|0)?[0-9]{10}$"&gt;&lt;/asp:RegularExpressionValidator&gt; &lt;cc1:ValidatorCalloutExtender id="ValidatorCalloutExtender15" runat="server" TargetControlID="RequiredFieldValidator11" Width="200px" CloseImageUrl="images/close.gif" WarningIconImageUrl="images/1329542890_dialog-warning.png" HighlightCssClass="highlight"&gt;
                                                         &lt;/cc1:ValidatorCalloutExtender&gt; &lt;cc1:ValidatorCalloutExtender id="ValidatorCalloutExtender16" runat="server" TargetControlID="RegularExpressionValidator4" Width="200px" CloseImageUrl="images/close.gif" WarningIconImageUrl="images/1329542890_dialog-warning.png" HighlightCssClass="highlight"&gt;
                                                         &lt;/cc1:ValidatorCalloutExtender&gt;&lt;/td&gt;&lt;/tr&gt;
             &lt;tr&gt;&lt;td&gt;&lt;asp:Button ID="btn_register" runat="server" Text="Register" ValidationGroup="SignUp" CssClass="bt_register" OnClick="btn_register_Click"/&gt;&lt;/td&gt;&lt;/tr&gt;
            &lt;/table&gt;
            &lt;div class="clear"&gt;&lt;/div&gt;
            &lt;p class="grey"&gt;&lt;asp:Literal ID="ltr_message2" runat="server"&gt;&lt;/asp:Literal&gt;&lt;/p&gt;
           &lt;/asp:Panel&gt;
          &lt;/div&gt;
  &lt;/div&gt;
      &lt;div class="tab"&gt;
          &lt;ul class="login"&gt;
              &lt;li class="left"&gt;&amp;nbsp;&lt;/li&gt;
              &lt;li&gt;Hello Guest!&lt;/li&gt;&lt;li class="sep"&gt;|&lt;/li&gt;&lt;li id="toggle"&gt;
                  &lt;a id="open" class="open" href="#"&gt;Log In | Register&lt;/a&gt;
                  &lt;a id="close" style="display: none;" class="close" href="#"&gt;Close Panel&lt;/a&gt;         
              &lt;/li&gt;
              &lt;li class="right"&gt;&amp;nbsp;&lt;/li&gt;
          &lt;/ul&gt; 
      &lt;/div&gt; 
  &lt;/div&gt;
   &lt;/asp:Panel&gt;
  </code></pre>
  
  <p>this slider works fine but i have no idea to how to auto expand this panel if one of the Literal have value.</p>
  
  <p>In Register New Account panel i have also custome validators also i have to found the way  to expand this panel if one the three custome validator throws Error message.</p>
  
  <p>For details referencing i have also include js/slide.js file content:</p>
  
  <pre><code>$(document).ready(function() {
  
      // Expand Panel
      $("#open").click(function(){
          $("div#panel").slideDown("slow");
  
      }); 
  
      // Collapse Panel
      $("#close").click(function(){
          $("div#panel").slideUp("slow"); 
      });     
  
      // Switch buttons from "Log In | Register" to "Close Panel" on click
      $("#toggle a").click(function () {
          $("#toggle a").toggle();
      });     
  
  });
  </code></pre>
  
  <p><strong><em>_</em>__<em>_</em>__<em>_</em>__<em>_</em>__<em>_</em>__<em>_</em>__<em>_</em>__<em>Updated Code</em>__<em>_</em>__<em>_</em>__<em>_</em>__<em>_</em>__<em>_</em>__<em>_</em>__<em>_</em></strong>
  this code is about how i append my custome error to literal control</p>
  
  <pre><code>protected void btnlogin_Click(object sender, EventArgs e)
  {
      if (Page.IsValid)
      {
  
          using (SqlConnection conn = Util.GetConnection())
          {
              conn.Open();
              SqlCommand cmd = new SqlCommand("sp_CheckUserAccount", conn);
              cmd.CommandType = CommandType.StoredProcedure;
              cmd.Parameters.Add("@UserName", SqlDbType.VarChar).Value = txtusername.Text.Trim();
              cmd.Parameters.Add("@pass", SqlDbType.VarChar).Value = txtpassword.Text.Trim();
              cmd.Parameters.Add("@Error", SqlDbType.NVarChar, 100).Direction = ParameterDirection.Output;
              SqlParameter sqlParam = cmd.Parameters.Add("@Return Value", SqlDbType.Int);
              sqlParam.Direction = System.Data.ParameterDirection.ReturnValue;
              cmd.ExecuteNonQuery();
              int returnValue = (int)cmd.Parameters["@Return Value"].Value;
              if (returnValue == 1)
              {
                  if (chk_remember.Checked == true)
                  {
                      conn.Close();
                      cmd.Dispose();
                      conn.Open();
                      SqlCommand cmd1 = new SqlCommand("sp_Read_User_Type", conn);
                      cmd1.CommandType = CommandType.StoredProcedure;
                      cmd1.Parameters.Add(new SqlParameter("@Userid", SqlDbType.VarChar, 50, "Id"));
                      cmd1.Parameters["@Userid"].Value = txtusername.Text.Trim();
                      SqlDataReader reader = cmd1.ExecuteReader();
                      while (reader.Read())
                      {
                          if (reader["Type_name"].ToString() == "Admin")
                          {
                              Response.Cookies["UName"].Value = txtusername.Text;
                              Response.Cookies["PWD"].Value = txtpassword.Text;
                              Response.Cookies["UName"].Expires = DateTime.Now.AddMonths(2);
                              Response.Cookies["PWD"].Expires = DateTime.Now.AddMonths(2);
                              Session["username"] = reader["Id"].ToString();
                              Response.Redirect("~/Admin/Admin_Landing_page.aspx");
                          }
                          else
                          {
                              Response.Cookies["UName"].Value = txtusername.Text;
                              Response.Cookies["PWD"].Value = txtpassword.Text;
                              Response.Cookies["UName"].Expires = DateTime.Now.AddMonths(2);
                              Response.Cookies["PWD"].Expires = DateTime.Now.AddMonths(2);
                              Session["username"] = reader["Id"].ToString();
                              Response.Redirect("~/EndUser/myhome.aspx");
                          }
                      }
                      reader.Close();
                  }
                  else
                  {
                      Response.Cookies["UName"].Expires = DateTime.Now.AddMonths(-1);
                      Response.Cookies["PWD"].Expires = DateTime.Now.AddMonths(-1);
                      conn.Close();
                      cmd.Dispose();
                      conn.Open();
                      SqlCommand cmd1 = new SqlCommand("sp_Read_User_Type", conn);
                      cmd1.CommandType = CommandType.StoredProcedure;
                      cmd1.Parameters.Add(new SqlParameter("@Userid", SqlDbType.VarChar, 50, "Id"));
                      cmd1.Parameters["@Userid"].Value = txtusername.Text.Trim();
                      SqlDataReader reader = cmd1.ExecuteReader();
                      while (reader.Read())
                      {
                          if (reader["Type_name"].ToString() == "Admin")
                          {
                              Session["username"] = reader["Id"].ToString();
                              Response.Redirect("~/Admin/Admin_Landing_page.aspx");
                          }
                          else
                          {
                              Session["username"] = reader["Id"].ToString();
                              Response.Redirect("~/EndUser/myhome.aspx");
                          }
                      }
                      reader.Close();
                  }
  
              }
              else
              {
                  ltr_error.Text = (string)cmd.Parameters["@Error"].Value;                                        }
          }
      }
  }
  </code></pre>