Click here to Skip to main content
15,886,799 members
Articles / Web Development / ASP.NET

Creating an HTML Text Area Server Side Control

Rate me:
Please Sign up or sign in to vote.
4.78/5 (58 votes)
29 Jan 2003CPOL14 min read 487.2K   8.4K   138  
Using VB.NET and Java Script to Create ASP.NET Rich Edit Server Side Control.
  • text_area_control_demo.zip
    • HTMLArea_demo
      • bin
        • RTFBox.dll
        • RTFBox.pdb
      • ColorPicker.html
      • HTMLArea.html
      • icons
        • 1.gif
        • about_off.gif
        • about_over.gif
        • aligncenter_off.gif
        • aligncenter_over.gif
        • alignjustify_off.gif
        • alignjustify_over.gif
        • alignleft_off.gif
        • alignleft_over.gif
        • alignright_off.gif
        • alignright_over.gif
        • bold_off.gif
        • bold_over.gif
        • bolditalicunderline_off.gif
        • bolditalicunderline_over.gif
        • button_off.gif
        • button_over.gif
        • codecleaner_off.gif
        • codecleaner_over.gif
        • codesnippet_off.gif
        • codesnippet_over.gif
        • color.gif
        • copy_off.gif
        • copy_over.gif
        • customtag_off.gif
        • customtag_over.gif
        • cut_off.gif
        • cut_over.gif
        • delete.gif
        • delete_off.gif
        • font.gif
        • fontcolor_off.gif
        • fontcolor_over.gif
        • fontface_off.gif
        • fontface_over.gif
        • fontsize_off.gif
        • fontsize_over.gif
        • help_off.gif
        • help_over.gif
        • highlight_off.gif
        • highlight_over.gif
        • image_off.gif
        • image_over.gif
        • indent_off.gif
        • indent_over.gif
        • italic_off.gif
        • italic_over.gif
        • line_off.gif
        • line_over.gif
        • link_off.gif
        • link_over.gif
        • load_off.gif
        • load_over.gif
        • logo.gif
        • orderedlist_off.gif
        • orderedlist_over.gif
        • outdent_off.gif
        • outdent_over.gif
        • paragraph_off.gif
        • paragraph_over.gif
        • paste_off.gif
        • paste_over.gif
        • print_off.gif
        • print_over.gif
        • redo_off.gif
        • redo_over.gif
        • save_off.gif
        • save_over.gif
        • saveas_off.gif
        • saveas_over.gif
        • separator.gif
        • smiles
          • 1.bmp
          • 1.gif
          • 2.bmp
          • 2.gif
          • 3.bmp
          • 3.gif
          • 4.bmp
          • 4.gif
          • 5.bmp
          • 5.gif
          • 6.bmp
          • 6.gif
          • 7.bmp
          • 7.gif
          • 8.bmp
          • 8.gif
          • 9.bmp
          • 9.gif
          • A.bmp
          • a.gif
          • B.bmp
          • b.gif
          • C.bmp
          • c.gif
          • D.bmp
          • d.gif
          • E.bmp
          • e.gif
          • F.bmp
          • f.gif
          • Flower.GIF
          • Flower.ico
          • G.bmp
          • g.gif
          • H.bmp
          • h.gif
          • I.bmp
          • i.gif
          • J.bmp
          • j.gif
          • K.bmp
          • k.gif
          • L.bmp
          • l.gif
          • M.bmp
          • m.gif
          • N.bmp
          • n.gif
          • O.bmp
          • o.gif
          • p.gif
          • q.gif
          • r.gif
          • Ranger.GIF
          • Ranger.ico
          • s.gif
          • Smile.GIF
          • Smile.ico
          • Smile2.GIF
          • Smile2.ico
          • smiley.ico
          • Smiling1.GIF
          • Smiling1.ico
          • Smiling2.GIF
          • Smiling2.ico
          • t.gif
          • u.gif
          • v.gif
          • w.gif
          • WS_FTP.LOG
          • x.gif
          • y.gif
        • specialchars_off.gif
        • specialchars_over.gif
        • strikethrough_off.gif
        • strikethrough_over.gif
        • style_off.gif
        • style_over.gif
        • subscript_off.gif
        • subscript_over.gif
        • superscript_off.gif
        • superscript_over.gif
        • table_off.gif
        • table_over.gif
        • underline_off.gif
        • underline_over.gif
        • undo_off.gif
        • undo_over.gif
        • unorderedlist_off.gif
        • unorderedlist_over.gif
        • upload_off.gif
        • upload_over.gif
      • Smiles.html
      • Test.aspx
  • text_area_control_src.zip
    • RTFBox
      • AssemblyInfo.vb
      • bin
        • RTFBox.dll
        • RTFBox.pdb
      • ColorPicker.html
      • HTMLArea.html
      • icons
        • 1.gif
        • about_off.gif
        • about_over.gif
        • aligncenter_off.gif
        • aligncenter_over.gif
        • alignjustify_off.gif
        • alignjustify_over.gif
        • alignleft_off.gif
        • alignleft_over.gif
        • alignright_off.gif
        • alignright_over.gif
        • bold_off.gif
        • bold_over.gif
        • bolditalicunderline_off.gif
        • bolditalicunderline_over.gif
        • button_off.gif
        • button_over.gif
        • codecleaner_off.gif
        • codecleaner_over.gif
        • codesnippet_off.gif
        • codesnippet_over.gif
        • color.gif
        • copy_off.gif
        • copy_over.gif
        • customtag_off.gif
        • customtag_over.gif
        • cut_off.gif
        • cut_over.gif
        • delete.gif
        • delete_off.gif
        • font.gif
        • fontcolor_off.gif
        • fontcolor_over.gif
        • fontface_off.gif
        • fontface_over.gif
        • fontsize_off.gif
        • fontsize_over.gif
        • help_off.gif
        • help_over.gif
        • highlight_off.gif
        • highlight_over.gif
        • image_off.gif
        • image_over.gif
        • indent_off.gif
        • indent_over.gif
        • italic_off.gif
        • italic_over.gif
        • line_off.gif
        • line_over.gif
        • link_off.gif
        • link_over.gif
        • load_off.gif
        • load_over.gif
        • logo.gif
        • orderedlist_off.gif
        • orderedlist_over.gif
        • outdent_off.gif
        • outdent_over.gif
        • paragraph_off.gif
        • paragraph_over.gif
        • paste_off.gif
        • paste_over.gif
        • print_off.gif
        • print_over.gif
        • redo_off.gif
        • redo_over.gif
        • save_off.gif
        • save_over.gif
        • saveas_off.gif
        • saveas_over.gif
        • separator.gif
        • smiles
          • 1.bmp
          • 1.gif
          • 2.bmp
          • 2.gif
          • 3.bmp
          • 3.gif
          • 4.bmp
          • 4.gif
          • 5.bmp
          • 5.gif
          • 6.bmp
          • 6.gif
          • 7.bmp
          • 7.gif
          • 8.bmp
          • 8.gif
          • 9.bmp
          • 9.gif
          • A.bmp
          • a.gif
          • B.bmp
          • b.gif
          • C.bmp
          • c.gif
          • D.bmp
          • d.gif
          • E.bmp
          • e.gif
          • F.bmp
          • f.gif
          • Flower.GIF
          • Flower.ico
          • G.bmp
          • g.gif
          • H.bmp
          • h.gif
          • I.bmp
          • i.gif
          • J.bmp
          • j.gif
          • K.bmp
          • k.gif
          • L.bmp
          • l.gif
          • M.bmp
          • m.gif
          • N.bmp
          • n.gif
          • O.bmp
          • o.gif
          • p.gif
          • q.gif
          • r.gif
          • Ranger.GIF
          • Ranger.ico
          • s.gif
          • Smile.GIF
          • Smile.ico
          • Smile2.GIF
          • Smile2.ico
          • smiley.ico
          • Smiling1.GIF
          • Smiling1.ico
          • Smiling2.GIF
          • Smiling2.ico
          • t.gif
          • u.gif
          • v.gif
          • w.gif
          • WS_FTP.LOG
          • x.gif
          • y.gif
        • specialchars_off.gif
        • specialchars_over.gif
        • strikethrough_off.gif
        • strikethrough_over.gif
        • style_off.gif
        • style_over.gif
        • subscript_off.gif
        • subscript_over.gif
        • superscript_off.gif
        • superscript_over.gif
        • table_off.gif
        • table_over.gif
        • underline_off.gif
        • underline_over.gif
        • undo_off.gif
        • undo_over.gif
        • unorderedlist_off.gif
        • unorderedlist_over.gif
        • upload_off.gif
        • upload_over.gif
      • obj
        • Debug
          • RTFBox.dll
          • RTFBox.pdb
          • temp
          • TempPE
      • RTFBox.sln
      • RTFBox.suo
      • RTFBox.vb
      • RTFBox.vbproj
      • RTFBox.vbproj.user
      • Smiles.html
      • Test.aspx
<VisualStudioProject>
    <VisualBasic
        ProjectType = "Local"
        ProductVersion = "7.0.9466"
        SchemaVersion = "1.0"
        ProjectGuid = "{AF8CF334-21B3-48AC-9E55-28117402595F}"
    >
        <Build>
            <Settings
                ApplicationIcon = ""
                AssemblyKeyContainerName = ""
                AssemblyName = "RTFBox"
                AssemblyOriginatorKeyFile = ""
                AssemblyOriginatorKeyMode = "None"
                DefaultClientScript = "JScript"
                DefaultHTMLPageLayout = "Grid"
                DefaultTargetSchema = "IE50"
                DelaySign = "false"
                OutputType = "Library"
                OptionCompare = "Binary"
                OptionExplicit = "On"
                OptionStrict = "Off"
                RootNamespace = ""
                StartupObject = ""
            >
                <Config
                    Name = "Debug"
                    BaseAddress = "285212672"
                    ConfigurationOverrideFile = ""
                    DefineConstants = ""
                    DefineDebug = "true"
                    DefineTrace = "true"
                    DebugSymbols = "true"
                    IncrementalBuild = "true"
                    Optimize = "false"
                    OutputPath = "D:\Inetpub\wwwroot\Diary\bin\"
                    RegisterForComInterop = "false"
                    RemoveIntegerChecks = "false"
                    TreatWarningsAsErrors = "false"
                    WarningLevel = "1"
                />
                <Config
                    Name = "Release"
                    BaseAddress = "285212672"
                    ConfigurationOverrideFile = ""
                    DefineConstants = ""
                    DefineDebug = "false"
                    DefineTrace = "true"
                    DebugSymbols = "false"
                    IncrementalBuild = "false"
                    Optimize = "true"
                    OutputPath = "bin\"
                    RegisterForComInterop = "false"
                    RemoveIntegerChecks = "false"
                    TreatWarningsAsErrors = "false"
                    WarningLevel = "1"
                />
            </Settings>
            <References>
                <Reference
                    Name = "System"
                    AssemblyName = "System"
                />
                <Reference
                    Name = "System.Drawing"
                    AssemblyName = "System.Drawing"
                />
                <Reference
                    Name = "System.Data"
                    AssemblyName = "System.Data"
                />
                <Reference
                    Name = "System.Web"
                    AssemblyName = "System.Web"
                />
                <Reference
                    Name = "System.Management"
                    AssemblyName = "System.Management"
                />
                <Reference
                    Name = "System.XML"
                    AssemblyName = "System.Xml"
                />
                <Reference
                    Name = "System.Windows.Forms"
                    AssemblyName = "System.Windows.Forms"
                    HintPath = "D:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Windows.Forms.dll"
                />
            </References>
            <Imports>
                <Import Namespace = "Microsoft.VisualBasic" />
                <Import Namespace = "System" />
                <Import Namespace = "System.Data" />
                <Import Namespace = "System.Collections" />
                <Import Namespace = "System.Diagnostics" />
                <Import Namespace = "System.Management" />
            </Imports>
        </Build>
        <Files>
            <Include>
                <File
                    RelPath = "AssemblyInfo.vb"
                    SubType = "Code"
                    BuildAction = "Compile"
                />
                <File
                    RelPath = "RTFBox.vb"
                    SubType = "Code"
                    BuildAction = "Compile"
                />
            </Include>
        </Files>
    </VisualBasic>
</VisualStudioProject>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
Pakistan Pakistan
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions