Click here to Skip to main content
15,903,388 members
Home / Discussions / C#
   

C#

 
AnswerRe: a ? b : c? Pin
EliottA30-Jan-09 3:13
EliottA30-Jan-09 3:13 
AnswerRe: a ? b : c? Pin
#realJSOP30-Jan-09 3:28
professional#realJSOP30-Jan-09 3:28 
GeneralRe: a ? b : c? Pin
PIEBALDconsult30-Jan-09 7:04
mvePIEBALDconsult30-Jan-09 7:04 
AnswerRe: a ? b : c? Pin
Najmal31-Jan-09 4:38
Najmal31-Jan-09 4:38 
QuestionRegister a ocx in system Pin
anishkannan30-Jan-09 2:13
anishkannan30-Jan-09 2:13 
AnswerRe: Register a ocx in system Pin
Dave Kreskowiak30-Jan-09 6:06
mveDave Kreskowiak30-Jan-09 6:06 
GeneralRe: Register a ocx in system Pin
Najmal31-Jan-09 4:41
Najmal31-Jan-09 4:41 
QuestionHow to use ConfigurationManager to modifying "applicationSettings" section of App.config using .NET (C#) Visual Studio2005 Pin
Thomas_Mathews30-Jan-09 2:04
Thomas_Mathews30-Jan-09 2:04 
How to use ConfigurationManager to modifying "applicationSettings" section of App.config? Or it there any other way to do same? I have the code to modify "appSettings" section of app.config.

1) To modify key "SApp.Properties.Settings" of "appSettings" section of app.config I used below code::

ExeConfigurationFileMap fileMap = new ExeConfigurationFileMap();
fileMap.ExeConfigFilename = @"D:\app.config";
Configuration config = ConfigurationManager.OpenMappedExeConfiguration(fileMap, ConfigurationUserLevel.None);
AppSettingsSection section = (AppSettingsSection)config.GetSection("appSettings");
section.Settings["SApp.Properties.Settings"].Value = "i23";
config.Save();

2)My App.config has below content::
<?xml version="1.0" encoding="utf-8"?>

<appSettings>
<add key="SApp.Properties.Settings" value="http://2344/soap/services"/>
</appSettings>

<applicationSettings>
<Generate.Properties.Settings>
<setting name="Generate_GeneratePDFServiceService"
serializeAs="String">
<value>http://2435/GeneratePDFService</value>
</setting>
</Generate.Properties.Settings>
</applicationSettings>
AnswerRe: How to use ConfigurationManager to modifying "applicationSettings" section of App.config using .NET (C#) Visual Studio2005 Pin
Manas Bhardwaj30-Jan-09 2:10
professionalManas Bhardwaj30-Jan-09 2:10 
AnswerRe: How to use ConfigurationManager to modifying "applicationSettings" section of App.config using .NET (C#) Visual Studio2005 Pin
Najmal31-Jan-09 4:50
Najmal31-Jan-09 4:50 
AnswerRe: How to use ConfigurationManager to modifying "applicationSettings" section of App.config using .NET (C#) Visual Studio2005 Pin
Thomas_Mathews1-Feb-09 23:03
Thomas_Mathews1-Feb-09 23:03 
QuestionXor the hex values Pin
M. J. Jaya Chitra30-Jan-09 1:51
M. J. Jaya Chitra30-Jan-09 1:51 
AnswerRe: Xor the hex values Pin
musefan30-Jan-09 2:05
musefan30-Jan-09 2:05 
GeneralRe: Xor the hex values Pin
M. J. Jaya Chitra30-Jan-09 2:11
M. J. Jaya Chitra30-Jan-09 2:11 
GeneralRe: Xor the hex values Pin
musefan30-Jan-09 2:20
musefan30-Jan-09 2:20 
GeneralRe: Xor the hex values Pin
musefan30-Jan-09 2:19
musefan30-Jan-09 2:19 
GeneralRe: Xor the hex values Pin
M. J. Jaya Chitra30-Jan-09 18:07
M. J. Jaya Chitra30-Jan-09 18:07 
GeneralRe: Xor the hex values Pin
cevikcaner3-Sep-09 20:40
cevikcaner3-Sep-09 20:40 
AnswerRe: Xor the hex values Pin
harold aptroot30-Jan-09 2:47
harold aptroot30-Jan-09 2:47 
QuestionExecuting an exe with C# code Pin
MatthysDT30-Jan-09 1:36
MatthysDT30-Jan-09 1:36 
AnswerRe: Executing an exe with C# code Pin
musefan30-Jan-09 1:38
musefan30-Jan-09 1:38 
GeneralRe: Executing an exe with C# code Pin
MatthysDT30-Jan-09 1:48
MatthysDT30-Jan-09 1:48 
GeneralRe: Executing an exe with C# code Pin
musefan30-Jan-09 1:58
musefan30-Jan-09 1:58 
GeneralRe: Executing an exe with C# code Pin
MatthysDT30-Jan-09 2:06
MatthysDT30-Jan-09 2:06 
GeneralRe: Executing an exe with C# code Pin
Ankit Rajpoot30-Jan-09 2:18
Ankit Rajpoot30-Jan-09 2:18 

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.