Click here to Skip to main content
15,890,185 members
Home / Discussions / C#
   

C#

 
GeneralRe: dictionary/list help needed Pin
Richard MacCutchan6-Oct-13 20:44
mveRichard MacCutchan6-Oct-13 20:44 
AnswerRe: dictionary/list help needed Pin
BillWoodruff6-Oct-13 16:58
professionalBillWoodruff6-Oct-13 16:58 
GeneralRe: dictionary/list help needed Pin
yoni.kess6-Oct-13 21:39
yoni.kess6-Oct-13 21:39 
GeneralRe: dictionary/list help needed Pin
BillWoodruff7-Oct-13 0:39
professionalBillWoodruff7-Oct-13 0:39 
QuestionEntity Framework: Primary key violation Pin
Lutosław6-Oct-13 2:55
Lutosław6-Oct-13 2:55 
AnswerRe: Entity Framework: Primary key violation Pin
Dave Kreskowiak6-Oct-13 6:28
mveDave Kreskowiak6-Oct-13 6:28 
GeneralRe: Entity Framework: Primary key violation Pin
Lutosław6-Oct-13 9:50
Lutosław6-Oct-13 9:50 
Questionupdate ConnectionString in App.config Pin
Jassim Rahma6-Oct-13 0:03
Jassim Rahma6-Oct-13 0:03 
Hi,

I am using the following code in my Form_Load to read the ConnectionString elements from my WinForm C# application.

C#
sql_connection = new MySqlConnection(ConfigurationManager.ConnectionStrings["SQLdb"].ConnectionString);
            
MySql.Data.MySqlClient.MySqlConnectionStringBuilder builder = new MySqlConnectionStringBuilder();
builder.ConnectionString = sql_connection.ConnectionString;

string server = builder.Server;
string port = builder.Port.ToString();
string user = builder.UserID;
string password = builder.Password;
string database = builder.Database;
string timeout = builder.ConnectionTimeout.ToString();
            
txtServer.Text = server;            
txtPort.Text = port;            
txtUserID.Text = user;
txtPassword.Text = password;
txtDatabase.Text = database;
txtTimeOut.Text = timeout;

I want to know how can get this back once changed by user and save it into the App.config's ConnectionString when user Clicks Save button?


Technology News @ www.JassimRahma.com

AnswerRe: update ConnectionString in App.config Pin
OriginalGriff6-Oct-13 0:10
mveOriginalGriff6-Oct-13 0:10 
QuestionSimple cross threading question Pin
ve3tru5-Oct-13 17:55
ve3tru5-Oct-13 17:55 
AnswerRe: Simple cross threading question Pin
Abhinav S5-Oct-13 19:00
Abhinav S5-Oct-13 19:00 
GeneralRe: Simple cross threading question Pin
ve3tru6-Oct-13 16:03
ve3tru6-Oct-13 16:03 
AnswerRe: Simple cross threading question Pin
Dave Kreskowiak6-Oct-13 4:24
mveDave Kreskowiak6-Oct-13 4:24 
AnswerRe: Simple cross threading question Pin
Richard MacCutchan6-Oct-13 5:04
mveRichard MacCutchan6-Oct-13 5:04 
Questionget pixel color on image Pin
Member 102255295-Oct-13 4:51
Member 102255295-Oct-13 4:51 
AnswerRe: get pixel color on image Pin
BillWoodruff5-Oct-13 7:22
professionalBillWoodruff5-Oct-13 7:22 
AnswerRe: get pixel color on image Pin
Richard MacCutchan5-Oct-13 20:51
mveRichard MacCutchan5-Oct-13 20:51 
AnswerRe: get pixel color on image Pin
AngloThaiSolutions7-Oct-13 4:01
AngloThaiSolutions7-Oct-13 4:01 
QuestionFocus of the DevExpress DateEdit Pin
nhanlaptrinh3-Oct-13 22:10
nhanlaptrinh3-Oct-13 22:10 
AnswerRe: Focus of the DevExpress DateEdit Pin
Eddy Vluggen4-Oct-13 0:25
professionalEddy Vluggen4-Oct-13 0:25 
QuestionVisual Studio Add-in 2012 Pin
Shankarcodebase3-Oct-13 21:41
Shankarcodebase3-Oct-13 21:41 
AnswerRe: Visual Studio Add-in 2012 Pin
Eddy Vluggen4-Oct-13 0:25
professionalEddy Vluggen4-Oct-13 0:25 
GeneralRe: Visual Studio Add-in 2012 Pin
Shankarcodebase5-Oct-13 16:28
Shankarcodebase5-Oct-13 16:28 
GeneralRe: Visual Studio Add-in 2012 Pin
Eddy Vluggen6-Oct-13 0:41
professionalEddy Vluggen6-Oct-13 0:41 
SuggestionRe: Visual Studio Add-in 2012 Pin
Richard Deeming4-Oct-13 0:48
mveRichard Deeming4-Oct-13 0:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.