08 2011 档案

摘要:Index.aspx: <script src="../../Scripts/jquery-1.3.2.js" type="text/javascript"></script> <script src="../../Scripts/MicrosoftAjax.js" type="text/javascript"></script> <script src="../../Scripts/Micro... 阅读全文
posted @ 2011-08-04 09:43 RobotTech 阅读(309) 评论(0) 推荐(0) 编辑
摘要:Index.aspx: <script src="../../Scripts/jquery-1.3.2.js" type="text/javascript"></script> <script type="text/javascript"> function getMessage() { $.get("/SimpleAjax/GetMessage", function(data) { $("#re... 阅读全文
posted @ 2011-08-04 09:31 RobotTech 阅读(187) 评论(0) 推荐(0) 编辑
摘要:<script type="text/javascript"> function getXmlHttpRequest() { var xhr; //check for IE implementation(s) if (typeof ActiveXObject != 'undefined') { try { xhr = new ActiveXObject("Msxml2.XMLHTTP"); } c... 阅读全文
posted @ 2011-08-04 09:28 RobotTech 阅读(159) 评论(0) 推荐(0) 编辑
摘要:Export.aspx: <h2>Export</h2> <a href="<%=Url.Action("ExportUsers") %>">Export Users as CSV</a>HomeController.cs: [HandleError] public class HomeController : Controller { public ActionResult Index() { ... 阅读全文
posted @ 2011-08-01 15:14 RobotTech 阅读(325) 评论(0) 推荐(0) 编辑
摘要:1). ChildAction HomeController.cs: [HandleError] public class HomeController : Controller { public ActionResult Index() { ViewData["Message"] = "Welcome to ASP.NET MVC!"; return View(); } [ChildActi... 阅读全文
posted @ 2011-08-01 13:56 RobotTech 阅读(423) 评论(0) 推荐(0) 编辑
摘要:Chapter04: ControllerExamples Index.aspx: <h2>Index</h2> <%if (TempData.ContainsKey("message")) {%> <p class="input-validation-success"><%=TempData["message"]%></p> <%} %> <table> <tr> <th> Username <... 阅读全文
posted @ 2011-08-01 13:05 RobotTech 阅读(256) 评论(0) 推荐(0) 编辑