title: Display the data only when the submit button is clicked?
body: <p>I am new to MVC.when I execute the mvc Search the data is automatically displaying.When I enter into search box then corresponding row is dispalying.But how can I write code such that when I execute it should be with only search button and when click on it the data should appear.How?</p>
  
  <pre><code>public ActionResult Search(int? myid)
  {             
      var s = from sp in db.Vedios
              select sp;
  
      if (myid.HasValue)        
      {
          s = s.Where(st=&gt;st.id==myid);
      }
  
      return View(s.ToList());
  }
  </code></pre>