How to call .net statically

how does asp.net call internally? is this a static calling method? ask for similar code

.
    public static string Getdata(string sql)
    {
        string connString = ConfigurationManager.ConnectionStrings["QHSE_ANConnectionString"].ToString();
        SqlConnection conn = new SqlConnection(connString);
        DataTable dt = new DataTable();
        DataTable dtCount = new DataTable();
        SqlDataAdapter adapter = new SqlDataAdapter(sql, conn);
        adapter.Fill(dt);
        //   json 

        return dt;

    }



    public void weldData()
    {
       
        string str = "sql*from sdaf";

        Getdata(str);


    }
CPP
Mar.13,2021

Yes, the public static method of a class can be called statically

Menu