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

Sections visible and not visible

I have a page with many input variables and some are blank. I want to make
the row "not visible" if the field is blank.

For example:

<tr>
<td width="120" align="right" nowrap>
<asp:Label id="contactAddressHead" Text="Address:" runat="server"/>
</td>
<td>
<asp:Label id="contactAddress" TextMode="MultiLine" Columns="50"
rows="2" runat="server" />
</td>
</tr>

I tried to check contactAddress to see if it was blank and then make
contactAddressHead and contactAddress not visible, which it does. But the
line between the rows above and below are now larger.

What I need to do is make the row (tr) not visible. I thought about using
<div>, but how do I handle that in my server script?

Is there a better way?

Thanks,

Tom
Nov 19 '05 #1
4 1293
you would have to put a runat="server" on it, give it an ID. It should
become an HtmlGenericControl in the .vb. Then you should be able to make it
not visible.

"tshad" <ts**********@ftsolutions.com> wrote in message
news:uK**************@TK2MSFTNGP11.phx.gbl...
I have a page with many input variables and some are blank. I want to make
the row "not visible" if the field is blank.

For example:

<tr>
<td width="120" align="right" nowrap>
<asp:Label id="contactAddressHead" Text="Address:" runat="server"/>
</td>
<td>
<asp:Label id="contactAddress" TextMode="MultiLine" Columns="50"
rows="2" runat="server" />
</td>
</tr>

I tried to check contactAddress to see if it was blank and then make
contactAddressHead and contactAddress not visible, which it does. But the
line between the rows above and below are now larger.

What I need to do is make the row (tr) not visible. I thought about using
<div>, but how do I handle that in my server script?

Is there a better way?

Thanks,

Tom

Nov 19 '05 #2
"Marina" <so*****@nospam.com> wrote in message
news:Ou**************@TK2MSFTNGP12.phx.gbl...
you would have to put a runat="server" on it, give it an ID. It should
become an HtmlGenericControl in the .vb. Then you should be able to make
it not visible.
That was what I was looking for.

Thanks,

Tom
"tshad" <ts**********@ftsolutions.com> wrote in message
news:uK**************@TK2MSFTNGP11.phx.gbl...
I have a page with many input variables and some are blank. I want to
make the row "not visible" if the field is blank.

For example:

<tr>
<td width="120" align="right" nowrap>
<asp:Label id="contactAddressHead" Text="Address:" runat="server"/>
</td>
<td>
<asp:Label id="contactAddress" TextMode="MultiLine" Columns="50"
rows="2" runat="server" />
</td>
</tr>

I tried to check contactAddress to see if it was blank and then make
contactAddressHead and contactAddress not visible, which it does. But
the line between the rows above and below are now larger.

What I need to do is make the row (tr) not visible. I thought about
using <div>, but how do I handle that in my server script?

Is there a better way?

Thanks,

Tom


Nov 19 '05 #3
More specifically you could add an ID and the runat attribute to your TR
tag. This way you'll be able to hanlde this tr (HtmlTableRow) and to set its
visible property to false...

Patrice

--

"tshad" <ts**********@ftsolutions.com> a écrit dans le message de
news:O0**************@TK2MSFTNGP10.phx.gbl...
"Marina" <so*****@nospam.com> wrote in message
news:Ou**************@TK2MSFTNGP12.phx.gbl...
you would have to put a runat="server" on it, give it an ID. It should
become an HtmlGenericControl in the .vb. Then you should be able to make
it not visible.


That was what I was looking for.

Thanks,

Tom

"tshad" <ts**********@ftsolutions.com> wrote in message
news:uK**************@TK2MSFTNGP11.phx.gbl...
I have a page with many input variables and some are blank. I want to
make the row "not visible" if the field is blank.

For example:

<tr>
<td width="120" align="right" nowrap>
<asp:Label id="contactAddressHead" Text="Address:" runat="server"/> </td>
<td>
<asp:Label id="contactAddress" TextMode="MultiLine" Columns="50"
rows="2" runat="server" />
</td>
</tr>

I tried to check contactAddress to see if it was blank and then make
contactAddressHead and contactAddress not visible, which it does. But
the line between the rows above and below are now larger.

What I need to do is make the row (tr) not visible. I thought about
using <div>, but how do I handle that in my server script?

Is there a better way?

Thanks,

Tom



Nov 19 '05 #4
"Patrice" <no****@nowhere.com> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
More specifically you could add an ID and the runat attribute to your TR
tag. This way you'll be able to hanlde this tr (HtmlTableRow) and to set
its
visible property to false...
I didn't know you could do that? There is a visibility attribute to TR?

Tom
Patrice

--

"tshad" <ts**********@ftsolutions.com> a écrit dans le message de
news:O0**************@TK2MSFTNGP10.phx.gbl...
"Marina" <so*****@nospam.com> wrote in message
news:Ou**************@TK2MSFTNGP12.phx.gbl...
> you would have to put a runat="server" on it, give it an ID. It should
> become an HtmlGenericControl in the .vb. Then you should be able to
> make
> it not visible.


That was what I was looking for.

Thanks,

Tom
>
> "tshad" <ts**********@ftsolutions.com> wrote in message
> news:uK**************@TK2MSFTNGP11.phx.gbl...
>>I have a page with many input variables and some are blank. I want to
>>make the row "not visible" if the field is blank.
>>
>> For example:
>>
>> <tr>
>> <td width="120" align="right" nowrap>
>> <asp:Label id="contactAddressHead" Text="Address:" runat="server"/> >> </td>
>> <td>
>> <asp:Label id="contactAddress" TextMode="MultiLine" Columns="50"
>> rows="2" runat="server" />
>> </td>
>> </tr>
>>
>> I tried to check contactAddress to see if it was blank and then make
>> contactAddressHead and contactAddress not visible, which it does. But
>> the line between the rows above and below are now larger.
>>
>> What I need to do is make the row (tr) not visible. I thought about
>> using <div>, but how do I handle that in my server script?
>>
>> Is there a better way?
>>
>> Thanks,
>>
>> Tom
>>
>
>



Nov 19 '05 #5

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

Similar topics

2
by: Wolf | last post by:
Hi to all! With your past help I make a new block in wich you can see last articles I inserted in my phpnuke. You can see it at http://www.italialibri.org, under the title. But I have a problem:...
10
by: Alec S. | last post by:
Hi, I need help redesigning my website. I want to have a header, contents bar, main content, and footer. I want the whole thing to be static, that is, I want all sections to be visible at all...
3
by: Robert | last post by:
I have an application with custom configuration sections in it's app.config file. Here's a shortened excerpt: <monitors> <monitor...
2
by: neill dumont | last post by:
I've tried to be clear, but this still seems overly complex to me, but here goes: I have a report in front of an aggregate query. I have a single subreport based on the same query for both a...
7
by: Piotrek Stachowicz | last post by:
Hi, I need to create the situation in my system, where no more critical sections can be initialized (win2000Server). I thought about creating a simple c# application and using the Monitor class....
6
by: MPH Computers | last post by:
Hi I am looking for some help on Threading and Critical Sections I have a main thread that controls an event the event handler creates a new thread for carrying out the work because the...
5
by: preetishrivastava1984 | last post by:
Hi All, I am using Crystal Reports thru VB. Generally it allows to insert as many sections in a report but when i try to insert more than 7 sections in a report than at run time the sections...
16
by: dhtml | last post by:
Breaking up the FAQ has been discussed. http://groups.google.com/group/comp.lang.javascript/browse_frm/thread/d11878ddfb2ac892/ I'm interested in doing this now. I propose something along the...
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...
1
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: 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...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.