Main Product Minimize

 Tech Blog Minimize

code first approach

Read More »

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 »

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=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a");

;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)

Exception from HRESULT: 0x800a0256, insert hypperlink, html hyperlink, 0x800a0256, HRESULT: 0x800a0256

Read More »

The % service terminated unexpectedly. It has done this 1 time(s). Event ID: 7034

Read More »

Clickonce App failed update After Certificates expired

Read More »

Website not able shows all images file under IIS7

Read More »