用ASP.NET写你自己的代码生成器(7) this.Button6.Click += new System.EventHandler(this.Button6_Click); this.Load += new System.EventHandler(this.Page_Load);
} #endregion
#region 显示数据库的表 Button1_Click /// <summary> /// 显示数据库的表 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Button1_Click(object sender, System.EventArgs e) { try { m_Scon.ConnectionString = "user id="+this.txtUserName.Text+ ";password="+this.txtPassword.Text+ ";initial catalog="+this.DropDownList3.SelectedItem.Text+ ";data source="+this.txtServerName.Text; SqlCommand m_Scmd = new SqlCommand("sp_tables",m_Scon); m_Scmd.CommandType = CommandType.StoredProcedure;