Here we change the application settings so that the application
configuration file is used instead of a system wide default file.
This means any changes only affect our application. We then change
the maximum image size to 6000 pixels and save the change to
file.
[C#]
XSettings.Config = new XConfig(Server.MapPath("MyApp.exe.config"));
XSettings.Config.MaxSize = 6000;
XSettings.Config.Save();
[Visual Basic]
XSettings.Config = New XConfig(Server.MapPath("MyApp.exe.config"))
XSettings.Config.MaxSize = 6000
XSettings.Config.Save()
|