title: Validating that a form input is not empty
body: <p>I have this code for Form Submit..</p>
  
  <pre><code>&lt;input type="submit" runat="server" id="buttonSubmit" value="Add" style="width:100px;" /&gt;
  </code></pre>
  
  <p>My BeginForm is like this..</p>
  
  <pre><code>&lt;% using (Html.BeginForm("Insert", "StudentController", FormMethod.Post, new { @id = "exc-" }))
         {%&gt;
  </code></pre>
  
  <p>I have one textbox in my view I need to check my textbox is empty or not if it is Empty display alert box saying please Enter some value in textbox
  other wise go to controler..</p>
  
  <p>Please any body help me out?</p>
  
  <p>thanks</p>