Answers for "asp.net mvc hide div from controller"

C#
0

asp.net mvc hide div from controller

public ActionResult Index()
    {  
        // div "mudetails" should not apper
        return View(false);
    }

    public ActionResult Index(string textbox)
    {
       // div "mudetails" should apper
       return View(true);
    }
Posted by: Guest on December-02-2020
0

asp.net mvc hide div from controller

@Model bool

    @if (model) {
        <div id="mudetails" runat="server" style="width: 99%; padding-top: 4%">
        </div>
    }
Posted by: Guest on December-02-2020

Code answers related to "asp.net mvc hide div from controller"

C# Answers by Framework

Browse Popular Code Answers by Language