Click here to Skip to main content
15,891,657 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,

I have a slider which is used to get a date range which in turn is used to fetch data and bind it to grid. I want to use Ajax partial postback for this
HTML
@using (Ajax.BeginForm("Slider", new AjaxOptions { UpdateTargetId = "targetDiv" }))
    {
        <td style="width: 400px;">
            @Html.Partial("DateSlider", Model)
        </td>
    }

<div id="targetDiv">
[code for the grid]
</div>

@Html.Partial("DateSlider", Model) here I am calling another cshtml page which I am using to render the slider and handle its event. "Slider" is the name of the slider in the DateSlider.cshtml page.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900