I have CuteEditor embedded in an edit template. Upload directory is set in cuteeditor config file, which works fine. However, I'm changing the upload directory to value in web.config on page load. This also works fine the first time the page loads.
The problem is that after I save the form, and the page posts back, the codebehind app settings (below) are not being recognized and the upload directories go back to default config file settings. This happens despite setting the new upload directory in page load event.
Here is the code in the Page_Load.
Dim editor = CType(frmContentEdit.FindControl("editor1"), Object)
editor.Setting("security:ImageGalleryPath") = ConfigurationManager.AppSettings("Upload_Path")
editor.Setting("security:ImageBrowserPath") = ConfigurationManager.AppSettings("Upload_Path")
editor.Setting("security:MediaGalleryPath") = ConfigurationManager.AppSettings("Upload_Path")
editor.Setting("security:FlashGalleryPath") = ConfigurationManager.AppSettings("Upload_Path")
editor.Setting("security:FilesGalleryPath") = ConfigurationManager.AppSettings("Upload_Path")
Again, this works fine the first time, and the upload screens reference the correct path I change it to above, however, after the post back, it seems the above code is ignored and the editor upload screens then use default upload directories in the cuteeditor config file.
Also, the site is not available for review online.
Do you know what the problem might be?