By host on
3/4/2011 3:01 PM
I try to create a new DNN Text Editor from code behind using following code
DotNetNuke.UI.UserControls.TextEditor te = new DotNetNuke.UI.UserControls.TextEditor();
PlaceHolder.Controls.Add(te);
But I got following error on the event viewer
DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.UI.UserControls.TextEditor.PopulateLists() at DotNetNuke.UI.UserControls.TextEditor.Page_Load(Object sender, EventArgs e)
After two hours search, I found we need using following code to make it work
DotNetNuke.UI.WebControls.DNNRichTextEditControl te = new DotNetNuke.UI.WebControls.DNNRichTextEditControl(); PlaceHolder.Controls.Add(te);
...
Read More »
|
By host on
2/23/2011 2:34 PM
Yes, Try this but not working. After reasearch I found need pass the fully quantified STRONG name to Type.GetType method. So this will work: Type myType1 = Type.GetType("System.Web.UI.WebControls.TextBox, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a");
|
By host on
1/11/2011 1:14 PM
;WITH DuplicateTable AS ( SELECT ROW_NUMBER() OVER(PARTITION BY DuplicateCloumnName ORDER BY TablePrimaryKeyCloumnName ) AS rn, * FROM TableName ) delete From TableName where TablePrimaryKeyCloumnName in( select TableId from DuplicateTable WHERE rn > 1)
|
By host on
10/4/2010 2:45 PM
Exception from HRESULT: 0x800a0256, insert hypperlink, html hyperlink, 0x800a0256, HRESULT: 0x800a0256
Read More »
|
By host on
10/2/2009 8:55 AM
The % service terminated unexpectedly. It has done this 1 time(s). Event ID: 7034
Read More »
|
By host on
7/21/2009 11:33 AM
Clickonce App failed update After Certificates expired
Read More »
|
By host on
7/20/2009 3:55 PM
Website not able shows all images file under IIS7
Read More »
|