PC Review


Reply
Thread Tools Rate Thread

Adding user credentials to web.config file

 
 
Andrus
Guest
Posts: n/a
 
      28th Apr 2009
I need to manually add server name, user name and password to web.config
file
and retrieve it from code.

Any code sample how to implement this ?

Andrus.

 
Reply With Quote
 
 
 
 
Peter Morris
Guest
Posts: n/a
 
      28th Apr 2009
google for the ConfigurationManager class

 
Reply With Quote
 
Family Tree Mike
Guest
Posts: n/a
 
      28th Apr 2009


"Andrus" wrote:

> I need to manually add server name, user name and password to web.config
> file
> and retrieve it from code.
>
> Any code sample how to implement this ?
>
> Andrus.
>
>


In addition to what Peter wrote, look into this link to ensure the passwords
are not stored in clear text for all to see...

http://msdn.microsoft.com/en-us/library/zhhddkxy.aspx


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Zip file using different user credentials Lilibet Microsoft Access VBA Modules 0 7th Jan 2009 12:37 AM
adding new settings to user.config at run time in C# =?Utf-8?B?SGFuc0o=?= Microsoft Dot NET Framework Forms 2 25th Oct 2006 03:39 PM
How to Specify User Credentials in Config File =?Utf-8?B?UmFqaXYgRGFz?= Microsoft Dot NET 0 15th Dec 2005 08:10 AM
<credentials> in web.config =?Utf-8?B?RGlmZmlkZW50?= Microsoft ASP .NET 0 8th Jul 2005 09:25 PM
Starting a process (.exe-file) from ASP.NET with different user credentials Jørn A. Microsoft ASP .NET 3 10th Sep 2004 03:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:54 AM.