Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. protected void Btn_Click(object sender, EventArgs e)
  2. {
  3. SqlConnectionStringBuilder builder = new SqlConnectionStringBuilder();
  4.  
  5. builder["Data Source"] = TxtDataSource.Text;
  6. builder["Initial Catalog"] = TxtInitialCatalog.Text;
  7. builder["User ID"] = TxtUserID.Text;
  8. builder["Password"] = TxtPassword.Text;
  9. Debug.Write(builder.ConnectionString);
  10. }
  11.  
  12. strConnection = @"Data Source=ORDEP-PCSQLEXPRESS;Initial Catalog=costumized;Persist Security Info=True;User ID=sa;Password=1234";
  13.  
  14. strConnection = (builder.ConnectionString)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement