1. 程式人生 > >微軟Ajax異步

微軟Ajax異步

input sdfs date loading head ive pan wid load

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
    <script src="~/Scripts/jquery-1.8.0.js"></script>
    <script src="~/Scripts/jquery.unobtrusive-ajax.js"></script>

</head>

<
body> <div> @Html.MyHtmlStringLabel("javensdfasdfasdfsadfsadfsadfwerqwerqwrqwrqwrqwerwerqwerqwerqwerwq",10) @using (Ajax.BeginForm("data", "Default", new AjaxOptions { Confirm = "你確定要繼續嗎?",//確定對話框 HttpMethod = "post",//請求類型 UpdateTargetId = "data",//獲取到響應後更新設置的元素ID InsertionMode=InsertionMode.Replace, LoadingElementId=""//請求時加載動畫元素ID })) {
<input type="submit" value="獲取服務器時間" /> <div id="data"></div> } </div> </body> </html>

微軟Ajax異步