473,414 Members | 1,596 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,414 software developers and data experts.

Adding a carriage return to text in a multiline textbox in design view.

I have a multiline textbox which I would like populated in the following
manner.

"Line1
Line2
Line3
Line4"

etc. I know how to do it in code, but is there a way to do it in the design
view?

Cheers

Simon
Nov 17 '05 #1
3 2253
Hi Simon,

I have done a lot of research regarding this issue but it seems to be an
issue by design. I cannot add a carriage return to the Text property in the
Properties Window of the TextBox. I will do more research to find a
specific answer.

On the other hand, would you please tell me why you need to do it in the
Design View? Since we can do it in the code, we can add the code to the
Page_Load event.

If I have misunderstood your concern, please feel free to let me know.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 17 '05 #2
> I have done a lot of research regarding this issue but it seems to be an
issue by design. I cannot add a carriage return to the Text property in the Properties Window of the TextBox. I will do more research to find a
specific answer.

On the other hand, would you please tell me why you need to do it in the
Design View? Since we can do it in the code, we can add the code to the
Page_Load event.

If I have misunderstood your concern, please feel free to let me know.


Nope, you've banged the nail on the head, so to speak. There is no reason
other than to keep things a bit tidier, this text is never going to change
and is part of a pagelet that has no logic behind it, I didn't want to have
to add an handlers just to format some text!

Cheers

Simon
Nov 17 '05 #3
Hi Simon,

I totally understand the inconvenience to you.

I have done more research regarding this issue and found a workaround for
your reference. That is switching to the HTML Source view to do what you
want. Please refer to the following HTML code snippet.
...
<asp:TextBox id="TextBox1" style="Z-INDEX: 102; LEFT: 256px; POSITION:
absolute; TOP: 80px" runat="server"
Width="168px" Height="96px" TextMode="MultiLine" Rows="4" Columns="50">
Line1
Line2
Line3
Line4
</asp:TextBox></FONT></form>
...

I hope it helps.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Rob Lemieux | last post by:
Using Visual Basic 6.0 I want the program to be able to print the carriage return. txtDisplay.Text = "Welcome to" + Chr(13) + "my demo." All I get is Welcome to|my demo.
0
by: raj | last post by:
I have multiline-text box in my C# application. User enter text into the multiline-text box, and without completing the whole line, user press Enter Key and go to the next line, by leaving the...
1
by: VMI | last post by:
If I want to separate a string in a web textbox so that it takes several lines, how can do it? In a Windows textbox, I only needed to add the "\r\n" to the string for the carriage return....
5
by: Tim | last post by:
Hi Guys, I want to write a string to a multiline textbox. Below is the code. Works great except the carriage returns are displayed as squares. What do I need to do to have the text displayed...
3
by: Jim Heavey | last post by:
Trying to figure out the technique which should be used to add rows to a datagrid. I am thinking that I would want an "Add" button on the footer, but I am not quite sure how to do that. Is that...
7
by: Nathan | last post by:
How do you code a carriage return in a textbox? For example, Txtbox1.Text = "My address:" & ?CarriageReturn? & "555 Maple" & ?CarriageReturn? & "Somewhere, USA" so that the textbox shows the...
5
by: Neo Geshel | last post by:
Greetings. I am in a very big pickle. I am trying to add page content - as well as a submit button - programatically to a web form that is supposed to submit to DB and then refresh. That...
2
by: dancer | last post by:
Using ASP.Net and VB.net I have textboxes (<asp:textbox id......>) in which the user will be entering paragraphs. They are multiline (several rows and several columns). The carriage returns...
2
by: Steve | last post by:
Hello, I'm new to the asp.net programming world and one of my first projects is to create an entry form for managers to enter in some information about their employees. My form has a multiline...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.