Hi I created a calculator in c# and added this code: This code's functionality is that if the specified link contains the next version of the calculator (Example: If the website contains text "1.0.1" then the updater application should open) it should open the "Updater" form which I created. But the problem is that the below code is not working meaning even if the website does not contain the text "1.0.1" the updater form is opening on form load. I want the Updater form to only open when I change the text from "1.0.0" to "1.0.1". And if I don't change meaning that if the website text with 1.0.0, then the Updater form should not open and it should start up the original form (the calculator I built). Please help me if there's any mistake in the below code!
This is that website: https://pastebin.com/raw/Ujy28wcb
WebClient webClient = new WebClient();
if (!webClient.DownloadString("https://pastebin.com/raw/Ujy28wcb").Contains("1.0.1"))
{
Updater frm = new Updater();
frm.Show();
}
else
{
Application.Restart();
}