Click here to Skip to main content
15,896,726 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
hi
can any one tell me the solutin for this?
in my asp.net web application iam using htmltext area it is displaying html source code after any event fired or any button clicks ..wat should i do to not displaying the html source code?
Posted
Comments
Abhinav S 28-Dec-11 3:57am    
Post some code here. Someone might be able to help you.
nanducs 28-Dec-11 4:25am    
for Example:i have written the text "sample" in the textarea after clicking the save button just for a second the textarea displaying "<p>sample</p>" in the textarea.
Amod Kumar Jaiswal 28-Dec-11 4:01am    
pls explain more....
nanducs 28-Dec-11 4:05am    
i have written some text in textarea and i want to save it to the database.for this iam using the save button in my page when iam clicking this the text was saved but for a fraction of second the textarea displaying the html code of that particular text given earlier.
anushripatil 28-Dec-11 4:09am    
can u plz post your code

C#
string tempvar="textareaid".text;

after inserting into database
just write.
C#
"textareaid".text=tempvar;
 
Share this answer
 
v2
use this snippet
textarea.innerhtml=string;
 
Share this answer
 
Comments
nanducs 28-Dec-11 5:24am    
mr praveen..what i need to assign for the string

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