Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

storage capacity of mysql database, WWWXXX YMD, 92.168.0.100:8080, wwwxxx edx, Wwwxxx.cmd, wwwxxx v4, wwwxxox.engiand.com, wwwxxx@*, fine hd wwwxxx, [a-z] wildcard case sensitive access 2003

Links

XODOX
Impressum

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

Posted on 2005-11-04 21:51:01 by 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

Report this message

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

Posted on 2005-11-04 22:38:51 by 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" <david@discussions.microsoft.com> 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

Report this message

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

Posted on 2005-11-04 22:51:04 by 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" <david@discussions.microsoft.com> 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
>
>
>

Report this message

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

Posted on 2005-11-04 23:16:14 by 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" <david@discussions.microsoft.com> 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" <david@discussions.microsoft.com> 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
>>
>>
>>

Report this message

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

Posted on 2005-11-05 01:52:10 by Jason Kester

Environment.Newline

Report this message