$.ajax({
                        type: "get",
                        cache: false,
                        //方法所在页面和方法名     
                        url: "ShareCus.aspx",
                        data: { "name": para,"xml":"1" },
                        contentType: "application/json; charset=utf-8",
                        dataType: "text",
                        success: function (data) {
                            $('#<%=lb_dutyname.ClientID%>').text(data);
                        },
                        error: function (err) {
                            alert(err);
                        }
                    });

 

 

 

.cs

 protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request["xml"]==null)
            {
            }
            else
            {
                GetTip(Request["name"]??string.Empty);
           
            }

        }

    }

 public   void GetTip(string name)
    {
        string result = string.Empty;
        Users user = null;
        if (!string.IsNullOrEmpty(name))
        {

 result=name+"1111";
         }
        Response.Clear();
        Response.Write(result);
        Response.End();
    }

 

 

 

 

 

 

 

 

 

 

 

相关文章:

  • 2022-12-23
  • 2021-06-16
  • 2021-06-27
  • 2021-09-22
  • 2021-12-24
猜你喜欢
  • 2021-11-19
  • 2021-10-16
  • 2022-12-23
  • 2021-11-19
  • 2021-07-24
相关资源
相似解决方案