日期:2014-05-17  浏览次数:20418 次

asp.net mvc ajax
 $("#formJq").ajaxSubmit({                
                url: "/aa/bb",
                success: function (data) {
                   alert("提交成功!");
                      } 


controller:
    
           public void bb(){

                  怎么写啊

                 }

asp.net mvc ajax

------解决方案--------------------
public void bb(){

                 //想怎么写怎么写
                 Response.ContentType = "text/html";
        Response.Write("熊猫发光");

                 }

------解决方案--------------------
网上找找例子,到处都是
http://blog.csdn.net/drworm/article/details/5426842
------解决方案--------------------
引用:
 <from>
     <input id="a"/>
     <input id="b"/>
</form>

 


public void bb(){
          Response.ContentType = "text/html";
          var a=Request["a"];