I have been given a project at a company where I need to make some enhancements and modifications as a side project. Currently, I have an almost finished website with around 13,000 lines of code in C# and JavaScript. To avoid any mishaps on the live website, I am working with a local copy of both the website and the database.
Although I am still learning JavaScript, I have a decent understanding of C#. I believe I need to change the database connection but I'm unsure about the process or the specific details that need to be altered. The local database is located on my desktop alongside the project's local copy, which I assume is where the changes should take place:
<connectionStrings>
<add name="MySqlConnection" connectionString="DATA SOURCE=localhost;
DATABASE=websitename;USER ID=username;PASSWORD=xxxxxxx;PORT=1234"/>
</connectionStrings>
In addition, I would like to test the website locally without an internet connection. However, I seem to encounter difficulties with this currently. Oddly enough, I initially ran into two errors in the code (functions required different numbers of arguments) which I corrected. Subsequently, I was able to execute the program using Visual Studio through Google Chrome - indicating that the local code is indeed functional. Nevertheless, making changes like editing hard-coded text or adjusting the menu do not reflect when running the program, suggesting that the version on the server takes precedence.
At present, I find myself quite perplexed by this situation. Any guidance or support would be tremendously appreciated. Thank you for reading this lengthy post.