title: Server side and client side validation possible
body: <p>in my requirement, i am require to use 1 editor and requiredfieldvalidator doesn't work on this Editor control. So i am validating this control through javascript and rest of the asp.net control through asp controls validator on a single click of a button.</p>
  
  <p>I am trying to implement server side validation through aspnet server side control and client side validation through javascript.
  i have two textbox control and one submit button as follows :</p>
  
  <pre><code>&lt;div&gt;
          &lt;asp:TextBox ID="Txt1" runat="server"&gt;&lt;/asp:TextBox&gt;
          &lt;asp:RequiredFieldValidator ID="RfvTxt1" runat="server" ErrorMessage="*" ForeColor="Red"
              ControlToValidate="Txt1"&gt;&lt;/asp:RequiredFieldValidator&gt;
          &lt;asp:TextBox ID="Txt2" runat="server"&gt;&lt;/asp:TextBox&gt;
          &lt;asp:Button ID="btnsubmit" runat="server" OnClick="btnsubmit_Click" Text="Submit" 
          OnClientClick=" return ss();"  /&gt;
          &lt;asp:Label ID="Label1" runat="server" Text="Label"&gt;&lt;/asp:Label&gt;
      &lt;/div&gt; 
  
  
  
   &lt;script src="JS/jquery-1.7.1.min.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
          function ss() {
              var script = $("#&lt;%=Txt2.ClientID %&gt;").val();
              if (script == "") {
                  alert(1);
                  return false;
              }
          }
      &lt;/script&gt;
  
   protected void Page_Load(object sender, EventArgs e)
      {
          Label1.Text = "dd";
      }
      protected void btnsubmit_Click(object sender, EventArgs e)
      {
          Label1.Text = "ss";
      }
  </code></pre>
  
  <p>but both the validation doesn't work.
  problem is, when the second textbox contains the Text. The page postback and runs it event even if the first Textbox doesn't contain its text.
   Thanks for any assistance.</p>