Click here to Skip to main content
15,902,938 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to add javascript to webapplication and how to use it Pin
parveen_banuk25-Sep-06 3:05
parveen_banuk25-Sep-06 3:05 
AnswerRe: how to add javascript to webapplication and how to use it Pin
Meax25-Sep-06 4:52
Meax25-Sep-06 4:52 
QuestionAvoiding login box in NTLM authentication Pin
Vijay Bhasker Reddy CH25-Sep-06 1:40
Vijay Bhasker Reddy CH25-Sep-06 1:40 
AnswerRe: Avoiding login box in NTLM authentication Pin
M LN Rao25-Sep-06 2:20
M LN Rao25-Sep-06 2:20 
Questionupdate app.config file at runtime using my.settings Pin
steve_rm25-Sep-06 1:22
steve_rm25-Sep-06 1:22 
AnswerRe: update app.config file at runtime using my.settings Pin
M LN Rao25-Sep-06 1:42
M LN Rao25-Sep-06 1:42 
AnswerRe: update app.config file at runtime using my.settings Pin
parveen_banuk25-Sep-06 3:29
parveen_banuk25-Sep-06 3:29 
QuestionRe: update app.config file at runtime using my.settings Pin
steve_rm25-Sep-06 4:46
steve_rm25-Sep-06 4:46 
Hello

I am using my.settings to create a application scope connection string.

The customer would like to change this if they want to connect to another database, and this should update the app.config file with the updated connection string.

My problem I have into the setting and create a connection string (easy). But I don't know and can't find out to update and save the new connection string.

My.Settings.cnnString = "This is example connection" 'Error read-only property

I am using vb.net 2005

Can anyone help,

I got this code and it seem it would work. However, there is a problem with the code. I get a "Object reference not set to an instance of an object."

Here my code.
<br />
Dim config As Configuration.Configuration = Configuration.ConfigurationManager.OpenExeConfiguration(Configuration.ConfigurationUserLevel.None)<br />
        config.ConnectionStrings.ConnectionStrings("ServiceMasterConnectionString").ConnectionString = "This is new connection " 'Error - <br />
        config.Save()<br />


Thanks in advance,

Steve
QuestionPlease help me to set dataGrid Scrolling Pin
Kokila.B25-Sep-06 0:52
Kokila.B25-Sep-06 0:52 
AnswerRe: Please help me to set dataGrid Scrolling Pin
Amit Kushwaha25-Sep-06 0:58
Amit Kushwaha25-Sep-06 0:58 
GeneralRe: Please help me to set dataGrid Scrolling Pin
Kokila.B25-Sep-06 1:32
Kokila.B25-Sep-06 1:32 
GeneralRe: Please help me to set dataGrid Scrolling Pin
Amit Kushwaha25-Sep-06 3:40
Amit Kushwaha25-Sep-06 3:40 
Questioncan not run in debug mode - vs.net 1.0 Pin
Amit Kushwaha25-Sep-06 0:48
Amit Kushwaha25-Sep-06 0:48 
QuestionCrystal Reports Problem Pin
vikram92924-Sep-06 23:50
vikram92924-Sep-06 23:50 
Questionsession problem firebox Pin
S.Bhushan24-Sep-06 23:24
S.Bhushan24-Sep-06 23:24 
Questiondatagrid problem urgent!!! Pin
vijay258324-Sep-06 23:12
vijay258324-Sep-06 23:12 
AnswerRe: datagrid problem urgent!!! Pin
M LN Rao25-Sep-06 1:09
M LN Rao25-Sep-06 1:09 
AnswerRe: datagrid problem urgent!!! Pin
parveen_banuk25-Sep-06 2:57
parveen_banuk25-Sep-06 2:57 
QuestionReport Viewer Pin
bouchaara24-Sep-06 22:01
bouchaara24-Sep-06 22:01 
Questioncapture audio in asp.net 1.1 with vb.net 1.1 Pin
amaneet24-Sep-06 21:16
amaneet24-Sep-06 21:16 
QuestionAssemblies Pin
aaraaayen24-Sep-06 20:42
aaraaayen24-Sep-06 20:42 
AnswerRe: Assemblies Pin
sdaniel_cst24-Sep-06 23:00
sdaniel_cst24-Sep-06 23:00 
GeneralRe: Assemblies Pin
aaraaayen24-Sep-06 23:49
aaraaayen24-Sep-06 23:49 
GeneralRe: Assemblies Pin
M LN Rao25-Sep-06 1:20
M LN Rao25-Sep-06 1:20 
Questionimports Pin
amaneet24-Sep-06 20:23
amaneet24-Sep-06 20:23 

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.