zoukankan      html  css  js  c++  java
  • ASP.NET MVC2 in Action 读书笔记 [122] Ajax with MVC

    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) {
                    $("#result").html(data);
                });
            }
        </script>
     
    <button type="button" onclick="getMessage();">Get the Message!</button>
    <div id="result"></div>

    SimpleAjaxController.cs:

    public class SimpleAjaxController : Controller
        {   
            public ActionResult Index()
            {
                return View();
            }
     
            public ActionResult GetMessage()
            {
                return Content("<h1>This is a custom message returned from an action.</h1>");
            }
        }
  • 相关阅读:
    CPU,MPU,MCU,SOC,SOPC联系与差别
    call && jmp 指令
    认识OD的两种断点
    VB逆向
    ASProtect.SKE.2.11 stolen code解密
    破解之寻找OEP[手动脱壳](2)
    破解之寻找OEP[手动脱壳](1)
    破解常用断点设置
    VB断点大全
    API断点大全
  • 原文地址:https://www.cnblogs.com/RobotTech/p/2126934.html
Copyright © 2011-2022 走看看