How to Use richtextbox in ASP.netSPsatyawan pisal12yAsked Nov 12, 2014, 12:46 AM EST1 answerShareLinkedInXCopy linkSave1 AnswerKnow the answer? Post it. Somebody with the same question will find it here.NGNaveen Gc7 points12y agoPosted Nov 12, 2014, 2:04 AM EST0Note: The output of Richtext box i am telling u in this reply is giving html formatted output.Steps:first download the jscipt file "tiny_mce.js" (search in google u will get it-open source.).Add it to your project folderthen , include the link of "tiny_mce.js" like this...<script src="../tinymce/jscripts/tiny_mce/tiny_mce.js"></script>then, include this script in your asp page.. <script type="text/javascript"> tinyMCE.init({ mode: "textareas", theme: "advanced", plugins: "safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager", theme_advanced_buttons1: "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect", theme_advanced_buttons2: "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor", theme_advanced_buttons3: "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen", theme_advanced_buttons4: "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage", theme_advanced_toolbar_location: "top", theme_advanced_toolbar_align: "left", theme_advanced_statusbar_location: "bottom", theme_advanced_resizing: false, template_external_list_url: "js/template_list.js", external_link_list_url: "js/link_list.js", external_image_list_url: "js/image_list.js", media_external_list_url: "js/media_list.js" }); </script> insert this code in body of your asp..(where you require the Rich Text Box)<asp:TextBox ID="RichTextBox" runat="server" TextMode="MultiLine"> </asp:TextBox>your Rich Text Box may appear like this...0Join to answer this questionEvery answer you publish earns 20 SHARP.Create free accountSign in
How to Use richtextbox in ASP.netSPsatyawan pisal12yAsked Nov 12, 2014, 12:46 AM EST1 answerShareLinkedInXCopy linkSave
NGNaveen Gc7 points12y agoPosted Nov 12, 2014, 2:04 AM EST0Note: The output of Richtext box i am telling u in this reply is giving html formatted output.Steps:first download the jscipt file "tiny_mce.js" (search in google u will get it-open source.).Add it to your project folderthen , include the link of "tiny_mce.js" like this...<script src="../tinymce/jscripts/tiny_mce/tiny_mce.js"></script>then, include this script in your asp page.. <script type="text/javascript"> tinyMCE.init({ mode: "textareas", theme: "advanced", plugins: "safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager", theme_advanced_buttons1: "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect", theme_advanced_buttons2: "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor", theme_advanced_buttons3: "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen", theme_advanced_buttons4: "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage", theme_advanced_toolbar_location: "top", theme_advanced_toolbar_align: "left", theme_advanced_statusbar_location: "bottom", theme_advanced_resizing: false, template_external_list_url: "js/template_list.js", external_link_list_url: "js/link_list.js", external_image_list_url: "js/image_list.js", media_external_list_url: "js/media_list.js" }); </script> insert this code in body of your asp..(where you require the Rich Text Box)<asp:TextBox ID="RichTextBox" runat="server" TextMode="MultiLine"> </asp:TextBox>your Rich Text Box may appear like this...0
Naveen Gc7 pointsPosted Nov 12, 2014, 2:04 AM EST
Steps:
first download the jscipt file "tiny_mce.js" (search in google u will get it-open source.).Add it to your project folder
then , include the link of "tiny_mce.js" like this...
<script src="../tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
then, include this script in your asp page..
<script type="text/javascript">
tinyMCE.init({
mode: "textareas",
theme: "advanced",
plugins: "safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager",
theme_advanced_buttons1: "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
theme_advanced_buttons2: "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
theme_advanced_buttons3: "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
theme_advanced_buttons4: "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage",
theme_advanced_toolbar_location: "top",
theme_advanced_toolbar_align: "left",
theme_advanced_statusbar_location: "bottom",
theme_advanced_resizing: false,
template_external_list_url: "js/template_list.js",
external_link_list_url: "js/link_list.js",
external_image_list_url: "js/image_list.js",
media_external_list_url: "js/media_list.js"
});
</script>
insert this code in body of your asp..(where you require the Rich Text Box)
<asp:TextBox ID="RichTextBox" runat="server" TextMode="MultiLine">
</asp:TextBox>
your Rich Text Box may appear like this...