asp.net ajax jquery

.cs

   [WebMethod]
        public static string GetInBoundLine(int provinceid)
        {
            return App.InBound.GetOutBoundTopInfo(10, provinceid);
        }

 

 

.aspx

$(function() {
        function changeInBound(obj, id) {
            $.ajax({
                type: "POST",
                url: "inbound.aspx/GetInBoundLine",
                data: "{provinceid:" + id + "}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function(msg) {
                $("#lbinboundLine").html(msg.d);
                }
            });
        }

posted @ 2011-05-16 10:26  轩~雨~阁  阅读(159)  评论(0编辑  收藏  举报