Showing posts with label how to. Show all posts
Showing posts with label how to. Show all posts

Monday, November 30, 2009

This sample code is explain how can you use dnn:texteditor for dnn module development



1.Register tag into the page
%@ Register TagPrefix="dnn" TagName="TextEditor" Src="~/controls/TextEditor.ascx"%>

2. Place texteditor
 dnn:texteditor id="teBlogEntry" runat="server" width="100%" height="400">/dnn:texteditor>



3. Assign values is same like textbox
  teBlogEntry.Text = sdr["Entry"].ToString();

4. Clear text is different than normal textbox
teBlogEntry.RichText.Text  = "";