title: Validate HTML Textbox in MVC 5 without Model and Entity Framework
body: <p>I just want to Validate my <code>HTML</code> text box required field validator in <code>MVC 5</code>,
   My View,its very important to use the <code>onclick</code> event,please guide,I have already wasted 3 hours on this I know its very simply, I tried <a href="http://www.dotnetspan.com/2014/11/validate-fields-not-in-model-entity-in-aspnet-MVC5.html" rel="nofollow">this link</a> but it didn't worked</p>
  
  <pre><code> @using (Html.BeginForm("Search", "Controller"))
         {
         &lt;input id="txtsearch" type="text" name="searchbox" /&gt;
         &lt;input id="Button1"  type="submit" value="Search" 
         onclick="location.href='@Url.Action("Search","Video")'" /&gt;
         }
  </code></pre>