Click here to Skip to main content
16,016,623 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how can i insert HTML Tags in TextArea?

i try this one.

C#
string strdetails = Server.HtmlEncode(txtdetails.Text.ToString()); 


and i also add page directive.

C#
<%@ Page Language="C#" MasterPageFile="~/mpMember.master" AutoEventWireup="true" CodeFile="postAlerts.aspx.cs" Inherits="postAlerts" Title="Untitled Page" ValidateRequest="false" EnableViewStateMac="false"%>


than also it not work for me. . .
Posted
Comments
AmitGajjar 27-May-13 2:34am    
you can go for any WYSIWYG control.
[no name] 27-May-13 2:36am    
how any think help me..
AmitGajjar 27-May-13 2:37am    
http://ckeditor.com/
[no name] 27-May-13 2:47am    
hmm it good one but can't put that much of jquery in my project.
AmitGajjar 27-May-13 2:54am    
why not ?

1 solution

You can write in aspx page this:

ASP.NET
<asp:textbox id="txt" runat="server" textmode="MultiLine" rows="5" maxlength="100" ></asp:textbox>
 
Share this answer
 
v2
Comments
[no name] 27-May-13 2:27am    
sorry but it not work ..
ilia lezhava 27-May-13 2:31am    
I edited my solution. try again.
[no name] 27-May-13 2:33am    
show my text box code it may be ok..
[no name] 27-May-13 2:33am    
my code

<asp:TextBox ID="txtdetails" runat="server" Height="113px" TextMode="MultiLine" Width="300px" CssClass="search_input" >
ilia lezhava 27-May-13 2:36am    
it is ok. can you write error text?

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900