<%using (Ajax.BeginForm("ExpenseSummaryData", new AjaxOptions { UpdateTargetId = "result" })) { %> <label for="startDate">Start Date:</label> <%= Html.TextBox("startDate") %> <br /> <label for="endDate">End Date:</label> <%= Html.TextBox("endDate")%> <br /> <input type="submit"/> <br /> <span id="result"/> <% } %>
<script src='<%=ResolveUrl("~/Content/js/MicrosoftAjax.debug.js")%>' type="text/javascript"></script> <script src='<%=ResolveUrl("~/Content/js/MicrosoftMvcAjax.debug.js")%>' type="text/javascript"></script>
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.