473,326 Members | 2,732 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,326 software developers and data experts.

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 1678
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
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
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
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
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
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
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
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
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
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
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.