473,485 Members | 1,473 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Inserting text into TableCell at runtime


I want to show a variable length field within a cell in a table. <TD>
....here... </TD>

I'm not sure how to do that, the information is stored in a class property
Org.CVtext

I can't use a textbox because it might not show all text and when printing
this page the info is incomplete. I've tried using a label but then all
VBCRLF aren't rendered and the text is just one long sentence. There must be
some way to show this....
Any help is greatly appreciated.
Jurjen de Groot
Netherlands
Nov 17 '05 #1
6 1685
Quick workaround, im sure there are better solutions but you can use html
tags
for example with a label
Label1.Text = "first line " & vbnewline & "second line"

Change it to

Label1.Text = "first line <br> second line"

Just use a replace function if only crlf is your problem

xavier
"Jurjen de Groot" <in**@gits-online.nl> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...

I want to show a variable length field within a cell in a table. <TD>
...here... </TD>

I'm not sure how to do that, the information is stored in a class property
Org.CVtext

I can't use a textbox because it might not show all text and when printing
this page the info is incomplete. I've tried using a label but then all
VBCRLF aren't rendered and the text is just one long sentence. There must be some way to show this....
Any help is greatly appreciated.
Jurjen de Groot
Netherlands

Nov 17 '05 #2
Quick workaround, im sure there are better solutions but you can use html
tags
for example with a label
Label1.Text = "first line " & vbnewline & "second line"

Change it to

Label1.Text = "first line <br> second line"

Just use a replace function if only crlf is your problem

xavier
"Jurjen de Groot" <in**@gits-online.nl> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...

I want to show a variable length field within a cell in a table. <TD>
...here... </TD>

I'm not sure how to do that, the information is stored in a class property
Org.CVtext

I can't use a textbox because it might not show all text and when printing
this page the info is incomplete. I've tried using a label but then all
VBCRLF aren't rendered and the text is just one long sentence. There must be some way to show this....
Any help is greatly appreciated.
Jurjen de Groot
Netherlands

Nov 17 '05 #3
In HTML, CRLF characters are just "white space" characters, and are not
rendered as line breaks. Line breaks in HTML are rendered via the "<br>"
tag. So, if you want your line breaks in there, you need to replace them
with "<br>" tags. You can do this with the String.Replace() method.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Neither a follower nor a lender be.

"Jurjen de Groot" <in**@gits-online.nl> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...

I want to show a variable length field within a cell in a table. <TD>
...here... </TD>

I'm not sure how to do that, the information is stored in a class property
Org.CVtext

I can't use a textbox because it might not show all text and when printing
this page the info is incomplete. I've tried using a label but then all
VBCRLF aren't rendered and the text is just one long sentence. There must be some way to show this....
Any help is greatly appreciated.
Jurjen de Groot
Netherlands

Nov 17 '05 #4
In HTML, CRLF characters are just "white space" characters, and are not
rendered as line breaks. Line breaks in HTML are rendered via the "<br>"
tag. So, if you want your line breaks in there, you need to replace them
with "<br>" tags. You can do this with the String.Replace() method.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Neither a follower nor a lender be.

"Jurjen de Groot" <in**@gits-online.nl> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...

I want to show a variable length field within a cell in a table. <TD>
...here... </TD>

I'm not sure how to do that, the information is stored in a class property
Org.CVtext

I can't use a textbox because it might not show all text and when printing
this page the info is incomplete. I've tried using a label but then all
VBCRLF aren't rendered and the text is just one long sentence. There must be some way to show this....
Any help is greatly appreciated.
Jurjen de Groot
Netherlands

Nov 17 '05 #5
That's what I said just that Kevin explained it the way it should be
explained :P

Just trying to help and I need some help

"Xavier MT" <xm*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Quick workaround, im sure there are better solutions but you can use html
tags
for example with a label
Label1.Text = "first line " & vbnewline & "second line"

Change it to

Label1.Text = "first line <br> second line"

Just use a replace function if only crlf is your problem

xavier
"Jurjen de Groot" <in**@gits-online.nl> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...

I want to show a variable length field within a cell in a table. <TD>
...here... </TD>

I'm not sure how to do that, the information is stored in a class property Org.CVtext

I can't use a textbox because it might not show all text and when printing this page the info is incomplete. I've tried using a label but then all
VBCRLF aren't rendered and the text is just one long sentence. There
must be
some way to show this....
Any help is greatly appreciated.
Jurjen de Groot
Netherlands


Nov 17 '05 #6
That's what I said just that Kevin explained it the way it should be
explained :P

Just trying to help and I need some help

"Xavier MT" <xm*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Quick workaround, im sure there are better solutions but you can use html
tags
for example with a label
Label1.Text = "first line " & vbnewline & "second line"

Change it to

Label1.Text = "first line <br> second line"

Just use a replace function if only crlf is your problem

xavier
"Jurjen de Groot" <in**@gits-online.nl> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...

I want to show a variable length field within a cell in a table. <TD>
...here... </TD>

I'm not sure how to do that, the information is stored in a class property Org.CVtext

I can't use a textbox because it might not show all text and when printing this page the info is incomplete. I've tried using a label but then all
VBCRLF aren't rendered and the text is just one long sentence. There
must be
some way to show this....
Any help is greatly appreciated.
Jurjen de Groot
Netherlands


Nov 17 '05 #7

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

Similar topics

0
309
by: Jurjen de Groot | last post by:
I want to show a variable length field within a cell in a table. <TD> ....here... </TD> I'm not sure how to do that, the information is stored in a class property Org.CVtext I can't use a...
1
2747
by: Bob Voss | last post by:
If I add a hidden input control to a tablecell and then set the cell's text property, the hidden control is not output. If I set the text first, then the hidden control is output but the text is...
1
1213
by: Gürkan Demirci | last post by:
Hi, i am using the VisualStudio FormDesigner to create an asp:table. I want to populate an asp:tablecell with different controls at runtime. In the codebehind file, there is an attribute for the...
4
507
by: Newbee | last post by:
I'm using a table (dynamically generated at runtime) for formatting wherein I have text in the first column, and textboxes in the second column. For example, (1,1) might have the string "Last Name"...
1
2309
by: Krish | last post by:
Hi, I am using table control to create table/cell & 2 text box & one image button during runtime. Onclick event of image button i would like to validate if there is any value in either of text...
16
5121
by: mj.redfox.mj | last post by:
Can anyone help? I have a textbox which I'm programatically adding by using the following code: txtTest = New TextBox txtTest.ID = "txtLeft" + cntCount.ToString...
2
1519
by: JonWB | last post by:
Hi, I am very new to .Net and have recently taken over someone else’s project. I am developing an asp webpage using C#. I have an asp:table that is populated using data from a database....
1
4867
by: semomaniz | last post by:
I have a form where i have created the form dynamically. First i manually added a panel control to the web page. Then i added another panel dynamically and inside this panel i created tables. I have...
1
2094
by: yogarajan | last post by:
Hi Friend this is my code protected void Page_Load(object sender, EventArgs e) { for (int i = 0; i < 10; i++) { TableRow tr = new TableRow();
0
6960
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7116
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,...
1
6825
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
7275
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
5418
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4857
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...
0
4551
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1376
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
595
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.