i have a dropdown list which has 3 options
select, active, completed
when page loads it wont show gridview when we select option then only gridview is generated based on the option
but i want aactive gridview to be generated when the pageloads then user can select particular option
whn page loads i want active gridview to be generated on page load


Rupesh KahaneRank #136 · 16.4K reputationPosted Apr 18, 2019, 2:18 AM EDT
After your page load write one ajax call which will take value from current drop down & passes to action method, now from action method returns data into Json, JsonResult, List format & bind to your grid / div.
Let me know if any concern.
Amit KumarRank #459 · 5.4K reputationPosted Apr 21, 2019, 9:08 AM EDT
Amit KumarRank #459 · 5.4K reputationPosted Apr 21, 2019, 8:50 PM EDT
Subin ThomasRank #724 · 3.2K reputationPosted Apr 21, 2019, 8:33 PM EDT
Subin ThomasRank #724 · 3.2K reputationPosted Apr 21, 2019, 8:39 PM EDT