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 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
"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
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
"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 >> > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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:...
|
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...
|
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...
|
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...
|
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....
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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)...
|
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...
|
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....
|
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: 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...
| |