日期:2014-05-18 浏览次数:20489 次
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ConnectionStringSettings conn = new ConnectionStringSettings(); conn.ConnectionString = "Server=shangwuPC;User ID=sa;Password=123"; conn.Name = "shangwu"; conn.ProviderName = "System.Data.SqlClient"; ConfigurationManager.ConnectionStrings.Add(conn); } }