Asp.net中,Gridview控件想在后台进行数据绑定,应该怎么写代码(C#)?

日期:2018-03-08 19:25:54 人气:1

Asp.net中,Gridview控件想在后台进行数据绑定,应该怎么写代码(C#)?

string sql = "server=.;database=你的数据库;integrated security=sspi;"; string s = "select SoftwareID,SoftwareName from Software"; SqlConnection conn = new SqlConnection(sql); SqlDataAdapter sda = new SqlDataAdapte
    A+
热门评论