I am a newbie in doing MVC and got stucked in middle someone guide me.
I want to hide div in view based on controller action.
View code:
<div id="mudetails" runat="server" style="width: 99%; padding-top: 4%">
</div>
this is my parent div inside content is present.
Controller code.
public ActionResult Index()
{
// div "mudetails" should not apper
return View();
}
public ActionResult Index(string textbox)
{
// div "mudetails" should apper
}
In pageload the div should not apper but when ActionResult Index(string textbox) action is triggerd the div should appear.. I tried but not able to find correct solution.