locked
HTML Textarea font RRS feed

  • Question

  • User-203654341 posted

    Can we have different fontsize in 2 rows of a text area?? If not what other html elements i can use??

    Saturday, August 18, 2018 1:44 AM

Answers

  • User2103319870 posted

    If not what other html elements i can use??

    You might consider using a RichTextEditor control to apply different css styles. One such option is AjaxContolToolkit HtmlEditoExtender. 

    http://www.ajaxcontroltoolkit.net/HTMLEditorExtender/HTMLEditorExtender.aspx

    Sample Code

    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
                    </asp:ToolkitScriptManager>
                    <asp:TextBox runat="server" ID="txtBox1" TextMode="MultiLine" Columns="50" Rows="10"
                        Text="Hello <b>world!</b>" />
                    <asp:HtmlEditorExtender ID="htmlEditorExtender1" TargetControlID="txtBox1" 
                        runat="server" EnableSanitization="False">
                    </asp:HtmlEditorExtender>

    Demo

    123

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, August 18, 2018 3:48 PM