2013-07-15 89 views
-1

嗨,大家好我仍然在学习jQuery和ajax,下面是一个例子,即时通讯设法做 但问题是,这是一个在mvc,所以它令我困惑。 我只是想知道如果有人可以引用我的jQuery的UI弹出窗口提交与Ajax的部分回发类似的图片,在asp.net请求。jquery ui提交表单ajax asp.net

enter image description here

回答

2

您可以在视图文件的末尾写的JavaScript代码:

$('#form-id').submit(function() { 
    data = $(this).serialize() 
    $.ajax({ 
    url: 'your url', 
    type: 'POST', 
    data: data, 
    success: function(response) { 
     //Implement your code here 
    } 
    }); 
    return false; 

});