title: How to pass a string message from controller to view in MVC
body: <p>I want to display a string message through a string variable by passing from controller to View.</p>
  
  <p>Here is my controller code:</p>
  
  <pre><code>public ActionResult SearchProduct(string SearchString)
          {
  
              FlipcartDBContextEntities db = new FlipcartDBContextEntities();
              string noResult="Search Result Not Found";
              var products = from p in db.Products  select p;
  
              if (!String.IsNullOrEmpty(SearchString))
              {
                  products = products.Where(s =&gt; s.ProductName.StartsWith(SearchString));
                  return View(products);
  
              }
  
              else
              {
  
                  return View(noResult);
              }
  </code></pre>
  
  <p>//
  Here i want to display  the string value ei Message to the view.</p>
  
  <p>please guide me.
  Am new to MVC</p>