I just came up with reading, writing and dynamically adding to the web. Config in Asp.net Keep in mind many ideas, but I just know what is the best way to add value to dynamically in web config. For example, in my case, I must add
& lt; Identity User Name = "Some Daman \ Users" Password = "Password" Impersonation = "Right" />
Text "itemprop =" text ">
I have found you and you want the code to be:
public zero balance (string user name, string password, bull nature) {configuration ObjConfig = WebConfigurationManager.OpenWebConfiguration ("~"); Identity Identity Id = (objection-identity) objConfig.GetSection ("system.web / identity"); If (identitySection! = Null) {identitySection.UserName = username; IdentitySection.Password = Password; Identity address Cloned = impersonation; } ObjConfig.Save (); }
Comments
Post a Comment