How to get a new line in textbox of asp form (VB)

How to get a new line in textbox of asp form (VB)

am 04.11.2005 21:51:01 von david

I have trouble to write paragragh with newlines in a multiline textbox
control in ASP.NET form.

I would like to display an instruction in textbox in the web form. But I do
not know how to type in a 'newline' in the text field of the property in
design pane.

Thanks for any help.

David

Re: How to get a new line in textbox of asp form (VB)

am 04.11.2005 22:38:51 von Justin

David,

If you're using vb.net add a vbcrlf to your string:

TextBox1.Text = "Here's some text" & VbCrlf & "This is on a new line."

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"david" wrote in message
news:276A05C2-1D84-4CDC-B5D1-5501E73D4326@microsoft.com...
>I have trouble to write paragragh with newlines in a multiline textbox
> control in ASP.NET form.
>
> I would like to display an instruction in textbox in the web form. But I
> do
> not know how to type in a 'newline' in the text field of the property in
> design pane.
>
> Thanks for any help.
>
> David

Re: How to get a new line in textbox of asp form (VB)

am 04.11.2005 22:51:04 von david

Thank you very much.
That is great.

By the way, do you know how to write subscript and superscript, for example,
A^3.

David

"S. Justin Gengo" wrote:

> David,
>
> If you're using vb.net add a vbcrlf to your string:
>
> TextBox1.Text = "Here's some text" & VbCrlf & "This is on a new line."
>
> --
> Sincerely,
>
> S. Justin Gengo, MCP
> Web Developer / Programmer
>
> www.aboutfortunate.com
>
> "Out of chaos comes order."
> Nietzsche
> "david" wrote in message
> news:276A05C2-1D84-4CDC-B5D1-5501E73D4326@microsoft.com...
> >I have trouble to write paragragh with newlines in a multiline textbox
> > control in ASP.NET form.
> >
> > I would like to display an instruction in textbox in the web form. But I
> > do
> > not know how to type in a 'newline' in the text field of the property in
> > design pane.
> >
> > Thanks for any help.
> >
> > David
>
>
>

Re: How to get a new line in textbox of asp form (VB)

am 04.11.2005 23:16:14 von Justin

David,

No, not offhand, but I suspect that you would concatenate the character code
for the subscript or superscript character. Something like:

TextBox1.Text = "This text is 1" & Char([appropriate character code
here]).ToString

But I'm not even certain that a textbox is capable of rendering that... You
may need some type of hybrid textbox in order to do so.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"david" wrote in message
news:CA1DD15F-5E07-4948-B18E-165960FF8EC8@microsoft.com...
> Thank you very much.
> That is great.
>
> By the way, do you know how to write subscript and superscript, for
> example,
> A^3.
>
> David
>
> "S. Justin Gengo" wrote:
>
>> David,
>>
>> If you're using vb.net add a vbcrlf to your string:
>>
>> TextBox1.Text = "Here's some text" & VbCrlf & "This is on a new line."
>>
>> --
>> Sincerely,
>>
>> S. Justin Gengo, MCP
>> Web Developer / Programmer
>>
>> www.aboutfortunate.com
>>
>> "Out of chaos comes order."
>> Nietzsche
>> "david" wrote in message
>> news:276A05C2-1D84-4CDC-B5D1-5501E73D4326@microsoft.com...
>> >I have trouble to write paragragh with newlines in a multiline textbox
>> > control in ASP.NET form.
>> >
>> > I would like to display an instruction in textbox in the web form. But
>> > I
>> > do
>> > not know how to type in a 'newline' in the text field of the property
>> > in
>> > design pane.
>> >
>> > Thanks for any help.
>> >
>> > David
>>
>>
>>

Re: How to get a new line in textbox of asp form (VB)

am 05.11.2005 01:52:10 von Jason Kester

Environment.Newline