|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
hi ,
i wanna convert the HTML tags in the Textarea with help of the ASP code. Means i m getting some value form DB which comes in the format of ------------ this is text <br><br><ul><li> list-1 value</li><li>list-2 val</li></ul> ------------ i wanna conversion of the above text in textarea i think this will make sense to U help me out int his it is very URGENT thanx Sur |
|
#2
|
|||
|
|||
|
Do you want the conversion to occur when the data is next displayed, similiar to how http://forums.devshed.com works?
__________________
El éxito consiste en una serie de pequeñas victorias día a día MySQL, MS SQL, MS ACCESS, Oracle Database Manager - http://victorpendleton.net/products/psdviewer.html |
|
#3
|
|||
|
|||
|
hi victorpendleton,
data is stored in DB is like this ============== <br><br> <ul> <li> list-1 value </li> <li>list-2 val</li> </ul> ============== i want to display this data in the form whn it converts this as HTML value my biggest problem is tht i want to display this value in TEXTAREA. i think this make sense to u bye Surender |
|
#4
|
|||
|
|||
|
You may want to check with a Javascript expert but I do not believe you can format a textarea. If the text is for display and not for use updating, would you be inclined to just display the formatted data in a table data cell.
|
|
#5
|
|||
|
|||
|
thanx a lot victorpendleton sir
hi victorpendleton,
sir thanx a lot for u'r elp and quick reply tht's wht i want to listen from any of the programmer tht it is not possible actually i tried my best to do this but the thing is i got faliuer so at the end i came to know tht TEXTAREA is a form-element not an editor whr i can show the formatted result but just to confir this i post the question here. so i think u r right this is not possible br surender |
|
#6
|
|||
|
|||
|
Re: thanx a lot victorpendleton sir
Quote:
from what i remember in javascript, a text area follows javascript string laws (a lot like the c++ strings) a paragraph return would be a \n in the textbox... |
|
#7
|
|||
|
|||
|
Hi,
Did you find it? Because i'm in need of samething. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Convert HTML Tags in Textarea by ASP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|