Hi

I currently have a username and password stored in the web.config file of my website, I want the user to be able to change his password whenever he wishes. Is there any way to update the password held in th web.config file using a text input box and a button on my admin page ?

Thanks,

Jake

Well, the web.config file is just an XML file. You can open it and alter the contents the same way you could to any other file. You can use a regular expression or path to locate the password in the file, overwrite it and save the file again.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.