I am having an issue with the URLControl User control - I would classify this as a bug.
I am trying to dynamically add the URL control to a page in code behind.
DotNetNuke.UI.UserControls.UrlControl urlBox = (DotNetNuke.UI.UserControls.UrlControl)
this.LoadControl("~/controls/UrlControl.ascx");
urlBox.FileFilter =DotNetNuke.Common.Globals.glbImageFileTypes;
urlBox.Width="300";
urlBox.ShowTabs=false;
urlBox.ShowUrls= false;
urlBox.UrlType = "F";
urlBox.ShowTrack = false;
urlBox.ShowLog = false;
urlBox.Required = true;
returnControl = urlBox;
I then add the control to the page. This is in response to a postback. Since all the processing of the ShowTabs, ShowUrls, etc is done in the OnLoad event
If Not Page.IsPostBack Then
This obviously causes issues with how the control is displayed.
It doesn't seem like I will be able to use this control for my purposes with this build of DNN. If anyone has other suggestions I'd be glad to hear them.
I have also found problems with the TextEditor control which I have documented in another topic: http://forums.asp.net/873498/ShowPost.aspx