title: Anyone know if there is an equivalent in Web forms to using @model mymodel in MVC
body: <p>So in MVC you can go something like:</p>
  
  <p>C#:</p>
  
  <pre><code>public ActionResult Index() 
  {
      var viewModel = new MyViewModel();
      return View(viewModel) ;
  }
  </code></pre>
  
  <p>View:</p>
  
  <pre><code>@model ViewModels.MyViewModel;
  
  Do stuff with model here... 
  </code></pre>
  
  <p>Is there an equivalent if being able to do this in Web Forms? My problem is that I've been developing using MVC for the past few years, and I've been sent on a course to learn web forms for some stupid reason, and I'm trying to use them as much like MVC as I can.  </p>