[WebMethod]    ///////////要加在方法前面,箭头处的按钮才能显示
    public string MothodOne() 
    {
        string Con = ConfigurationManager.ConnectionStrings["Shujuku"].ConnectionString;
        SqlConnection conn = new SqlConnection(Con);
        SqlDataAdapter sda = new SqlDataAdapter("select * from UserTable", conn);
        DataSet ds = new DataSet();
        sda.Fill(ds);
        string json = JsonConvert.SerializeObject(ds);
        return json;
    }WebSerice创建查询

相关文章:

  • 2021-07-05
  • 2021-08-30
  • 2021-07-29
  • 2021-05-21
  • 2021-07-16
  • 2022-12-23
  • 2021-10-29
  • 2021-06-01
猜你喜欢
  • 2021-07-17
  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案