Click here to Skip to main content
15,898,897 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
This My connectionStrings :
How Can Write password like ****

C#
connectionString="data source=SERVER;Database=MnStores; Integrated Security = False; User ID=pc1; Password=1234; Trusted_Connection=false;"
Posted
Updated 12-May-15 0:31am
v2
Comments
Deepu S Nair 12-May-15 6:49am    
I think its not possible.If you want to secure your password try to encrypt your web.config file.

You can't.
Those strings are normally held within XML files, which are text based, and don't "know" about passwords specifically.

What you want to do about this will depend on what environment you are in. For example, in a Web.Config file, you would use this: https://msdn.microsoft.com/en-us/library/ms178372(v=vs.140).aspx[^]
 
Share this answer
 
You can't.
However there are alternatives, see, for instance: "How to keep secrets secret
(Alternatives to Hardcoding Passwords)"
[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900