forum

Home / DeveloperSection / Forums / How to add loader in mvc?

How to add loader in mvc?

Sunil Singh209824-Jun-2017

I want to show Loader when button is clicked before data is displayed. 

Below is my view code I don’t know what should be the controller code and jquery.

Please help me.

<body>
    @using (Ajax.BeginForm("Loader", "Home", newAjaxOptions { HttpMethod = "POST",}))
    {
        <inputtype="submit"value="Please click"/>
    }
 
    <divid="divLoading">
           </div>
 
    <divid="target">
           </div>
</body>


Updated on 27-Jun-2017

Can you answer this question?


Answer

1 Answers

Liked By