473,387 Members | 3,033 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Help!!! How to get data in a TextBox

Hi,

I needed some help here.
I have variable which has the following data
var = "User:abc, <br>Date:06/15/07,<br>Comments: EVERYTHING IS FINE"

i tried to put the value of 'var' in a text area n it comes in the same manner i.e. "User:abc, <br>Date:06/15/07,<br>Comments: EVERYTHING IS FINE "
instead i want it to be like this

User:abc
Date:06/15/07
Comments: EVERYTHING IS FINE


i want <br> to be taken as a newline character. or some other way to display things the way i mentioned above.
In the above example, I'm able to seperate the values which are seperated by comma. So thats not the problem.

Pleease reply

Any help is appreciated.

Ravi
Jun 18 '07 #1
3 1693
drhowarddrfine
7,435 Expert 4TB
That'll never happen. By 'textbox' I assume you mean <textarea> and the contents of that will always be text only.
Jun 18 '07 #2
hey i got a solution to this problem

i changed the value of the variable
var = "User:abc, \nDate:06/15/07,\nComments: EVERYTHING IS FINE"

i replaced <br> by \n, and it displays the way i wanted

User:abc
Date:06/15/07
Comments: EVERYTHING IS FINE"

n yes, I wanted everything to be displayed in the Textarea.
so, from this we can conclude, the textarea considers '\n' as a new line character but takes '<br>' as a text only


Thanks all

Ravi



That'll never happen. By 'textbox' I assume you mean <textarea> and the contents of that will always be text only.
Jun 18 '07 #3
drhowarddrfine
7,435 Expert 4TB
No, this is a translation by javascript and not the textarea.
Jun 18 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: | last post by:
Hi , I did ask before but got no replies. I have a series of textboxes, In Enter event I need to set the focus to a different textbox I am having problems when I set focus within the Textbox...
4
by: Jurjen de Groot | last post by:
I'm developing a ASP.NET/VB.NET web application. (VS.NET 2003) I've created several webpages, but on two pages one textbox colors yellow (the background) and I can't get the background to appear...
0
by: Rogelio Moreno | last post by:
Denis, I recommend you to bind the textbox controls to columns of your table inside your dataset, then get the bindingmanagerbase for the table, then use the position property of the...
2
by: lemonvital | last post by:
i have a main form and i want to ada a childform,so i do it with the way such as me.controls.add code : Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)...
1
by: Agnes | last post by:
I got form A which inhertied from frmBASE Todays, i had re-arrange our usercontrol or other class library. (re-build them) suddenly, i found all some forms 's textbox and button disappear in...
3
by: Barry | last post by:
A beginners question to someone that isn't a beginner ;) I've forgotton a lot. The code below isn't what I want to do but it demonstrates succinctly my problem. I want to drop a "MyTextBox"...
2
by: Christina | last post by:
Hello !! I am creating a dynamic textbox and want to validate it using the requiredfieldvalidator. These are the steps which I tried: ==================================================== 1)...
2
by: g8dnitez | last post by:
hi, i have two textbox in a page. i like to pass the value typing in textbox1 to textbox2 immediately.. ( without textbox1 lost focus) hope u guys understand my situation.. thx regards,...
1
by: KayC | last post by:
Hi I am using Access2002 I have a form with 5 text boxes which are parameters to a function 3 parameters are optional in the function How do I pass the empty textbox values to a optional...
2
by: yonatan1234 | last post by:
Hello Everyone! I am trying to make a simple form that is positioned within a contentHolder. The "CommitChange" Function should do a simple action - update a message to the data in the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.