@Model bool @if (model) { <div id="mudetails" runat="server" style="width: 99%; padding-top: 4%"> </div> }
public ActionResult Index() { // div "mudetails" should not apper return View(false); } public ActionResult Index(string textbox) { // div "mudetails" should apper return View(true); }