asp.net高手帮忙解决一个简单的代码问题!我是个新手!
usingSystem;usingSystem.Data;usingSystem.Data.SqlClient;usingSystem.Configuration;usi...
using System; using System.Data; using System.Data.SqlClient; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; /// /// Website 继承了 Users 类 /// public class Website:Users { protected string web_count; protected string last_visit_ip; protected string last_visit_location; protected string last_visit_time; protected string last_visitor_OS; protected string last_visitor_browser; public Website() { DataBase db = new DataBase(); string selcmd = "select * from web_state"; SqlDataReader reader = db.GetSqlDataReader(selcmd); reader.Read(); web_count = reader.GetValue(0).ToString(); last_visit_ip = reader.GetValue(1).ToString(); last_visit_location = reader.GetValue(2).ToString(); last_visit_time = reade...
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询