472,345 Members | 1,594 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,345 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 2196
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...
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...
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...
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. ...
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,...
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? &...
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...
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...
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...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...

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.