Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to store newline or in text file or when user presses enter 1

Status
Not open for further replies.

aspdotnetuser

Programmer
Oct 10, 2008
45
GB
Hi,

I want to allow users to enter text into a text field which will be saved into a text file which will be used for an email template.

How can I store <br> or when the user has pressed enter when they are typing? Would I use the replace() method?
 
Look at this method and others in the namespace:
System.IO.File.Create()
Also, open up Visual Studio help and enter this URL. It is a complete walkthrough on what you want to do:
ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_vbcn/html/7d2109eb-f98a-4389-b43d-30f384aaa7d5.htm
 
If you are using VS2005 this should show up. You can even type it in IE and it will show.
 
I thought it would display in IE too but it didn't work. Can you tell me the name of the article?
 
It is directly from the visual studio help files. You have to have MSDN help installed.
 
I managed to get it working so that when the user enters text into a textbox it saves the text with spaces and new lines.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top