Click here to Skip to main content
15,897,226 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
    @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>
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