Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected void Btn_Click(object sender, EventArgs e)
- {
- SqlConnectionStringBuilder builder = new SqlConnectionStringBuilder();
- builder["Data Source"] = TxtDataSource.Text;
- builder["Initial Catalog"] = TxtInitialCatalog.Text;
- builder["User ID"] = TxtUserID.Text;
- builder["Password"] = TxtPassword.Text;
- Debug.Write(builder.ConnectionString);
- }
- strConnection = @"Data Source=ORDEP-PCSQLEXPRESS;Initial Catalog=costumized;Persist Security Info=True;User ID=sa;Password=1234";
- strConnection = (builder.ConnectionString)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement