Hello,
I have a UserControl with a standalone ImageManager. The userControl is loaded into an aspx page which references a nested masterpage. (with me so far?). What I would like is to move the code from the ascx code behind into the aspx code behind. I have tried every location I can think of in both the aspx page and the masterpage - I always end up with error: "Dialog Parameters for ImageManager Dialog do not exist".
The code currently in Page_load of user control (which works):
The user control is added to the Init of the aspx page.
any suggestions?
thank you in advance for any assistance!
- kelly williams
I have a UserControl with a standalone ImageManager. The userControl is loaded into an aspx page which references a nested masterpage. (with me so far?). What I would like is to move the code from the ascx code behind into the aspx code behind. I have tried every location I can think of in both the aspx page and the masterpage - I always end up with error: "Dialog Parameters for ImageManager Dialog do not exist".
The code currently in Page_load of user control (which works):
Dim imageManager_parameters As New Editor.DialogControls.FileManagerDialogParameters
Dim imagePath As String() = {"~/App_Themes/images"}
With imageManager_parameters
.ViewPaths = imagePath
.SearchPatterns = New String() {"*.jpg"}
.MaxUploadFileSize = 5000000
End With
Dim imageManager_dialogDefinition As New DialogDefinition(GetType(Editor.DialogControls.ImageManagerDialog), imageManager_parameters)
With imageManager_dialogDefinition
.ClientCallbackFunction = "set_Image"
.Width = Unit.Pixel(694)
.Height = Unit.Pixel(440)
End With
telerik_imageManager.DialogDefinitions.Add("ImageManager", imageManager_dialogDefinition)
The user control is added to the Init of the aspx page.
any suggestions?
thank you in advance for any assistance!
- kelly williams