@Model string @{ Layout = null; } <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width" /> <title>Index</title> <link href="@Url.Content("/Content/Site.css")" rel="stylesheet" type="text/css" /> <script src="~/Scripts/jquery-1.8.3.min.js"></script> <script src="~/Scripts/jquery.unobtrusive-ajax.min.js"></script> </head> <body> <div> @{ ViewBag.title = "index"; AjaxOptions AjaxObject = new AjaxOptions { UpdateTargetId = "tabledata", Url = Url.Action("Appointment"), LoadingElementId = "loading", LoadingElementDuration = 5000, Confirm = "آیا مایلید صفحه برای درخواست شما پردازش شود" }; } <div id="app">Appointment</div> <div id="loading" style="display: none; color: red; font-weight: bold"> <p>Loading Data...</p> </div> @using (Html.BeginForm(AjaxObject)) { <table> <thead> <th>Cleint Name</th> <th>Appointment Data</th> <div id="tabledata"> @Html.Action("AppointmentData", new { id = Model }) </div> </thead> </table> <p> @Html.DropDownList("id", new SelectList( new[] { "All", "joe", "bob", "eliz" }, (Model ?? "All"))) <input type="submit" value="submit" /> </p> } </div> </body> </html>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)