473,231 Members | 1,661 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,231 software developers and data experts.

Nesting an asp:label control inside of an asp:table

So, I have a table that I only want to appear after some event has
fired. Using the asp:table control and the Visible property, this is a
piece of cake. The problem is that when I try and drop a label control
or any other asp:control to the table, the designer view gives me the
old circle and slash
saying "Nope, can't do that".

Am I correct to assume then that one cannot place an asp:control in an
asp:cell? If I am wrong here, other then manually adding the control in
code, but that causes some issues in the code behind. Is there a way to
do this in designer mode?

Thanks so much for sharing your expertise.

-Guy

Nov 2 '06 #1
4 2817
Am I correct to assume then that one cannot place an asp:control in an
asp:cell?
NO thats definitely not correct ... I use the table control all the
time to display all sorts of controls checkboxes, radio buttons,
button, link buttons, hyperlinks ... and designer does also support
this.. no idea why you are not able to add controls to the table cell

Guy Noir wrote:
So, I have a table that I only want to appear after some event has
fired. Using the asp:table control and the Visible property, this is a
piece of cake. The problem is that when I try and drop a label control
or any other asp:control to the table, the designer view gives me the
old circle and slash
saying "Nope, can't do that".
If I am wrong here, other then manually adding the control in
code, but that causes some issues in the code behind. Is there a way to
do this in designer mode?

Thanks so much for sharing your expertise.

-Guy
Nov 2 '06 #2
donet programmer wrote:
Am I correct to assume then that one cannot place an asp:control in an
asp:cell?

NO thats definitely not correct ... I use the table control all the
time to display all sorts of controls checkboxes, radio buttons,
button, link buttons, hyperlinks ... and designer does also support
this.. no idea why you are not able to add controls to the table cell
Thanks for affirming that. I can tell you how I am using this:
1. I create the table by dragging the web controls table from the
toolbar to the asp.net page in designer.
2. On the table properties, I click rows and add 1 row.
3. In that row, I add, say, 2 cells.

At this point One would think I could drag and drop an asp:label
control to one of the cells, but no go. Even when I add some text to
the cell thinking that maybe the cell had collapsed. Still no dice.
Perhaps there is a table or row/cell setting I am missing?

Thanks for the advice.

-Guy
>
Guy Noir wrote:
So, I have a table that I only want to appear after some event has
fired. Using the asp:table control and the Visible property, this is a
piece of cake. The problem is that when I try and drop a label control
or any other asp:control to the table, the designer view gives me the
old circle and slash
saying "Nope, can't do that".
If I am wrong here, other then manually adding the control in
code, but that causes some issues in the code behind. Is there a way to
do this in designer mode?

Thanks so much for sharing your expertise.

-Guy
Nov 2 '06 #3
I use the HTML view of the designer .... just start typing <asp:....
inside TableCell .. and intellisense should give u options to add
whatever control youwant to add....

Guy Noir wrote:
donet programmer wrote:
Am I correct to assume then that one cannot place an asp:control in an
asp:cell?
NO thats definitely not correct ... I use the table control all the
time to display all sorts of controls checkboxes, radio buttons,
button, link buttons, hyperlinks ... and designer does also support
this.. no idea why you are not able to add controls to the table cell
Thanks for affirming that. I can tell you how I am using this:
1. I create the table by dragging the web controls table from the
toolbar to the asp.net page in designer.
2. On the table properties, I click rows and add 1 row.
3. In that row, I add, say, 2 cells.

At this point One would think I could drag and drop an asp:label
control to one of the cells, but no go. Even when I add some text to
the cell thinking that maybe the cell had collapsed. Still no dice.
Perhaps there is a table or row/cell setting I am missing?

Thanks for the advice.

-Guy

Guy Noir wrote:
So, I have a table that I only want to appear after some event has
fired. Using the asp:table control and the Visible property, this is a
piece of cake. The problem is that when I try and drop a label control
or any other asp:control to the table, the designer view gives me the
old circle and slash
saying "Nope, can't do that".
>
If I am wrong here, other then manually adding the control in
code, but that causes some issues in the code behind. Is there a way to
do this in designer mode?
>
Thanks so much for sharing your expertise.
>
-Guy
Nov 3 '06 #4

donet programmer wrote:
I use the HTML view of the designer .... just start typing <asp:....
inside TableCell .. and intellisense should give u options to add
whatever control youwant to add....
Right, understand that. Just looking to "fix" what appears to be broke
as keeping track of the html code is tedious for me and the designer
mode seems to work for some but not for me. Perhaps there is an install
option I missed.....hrmmmmmm

Guy Noir wrote:
donet programmer wrote:
Am I correct to assume then that one cannot place an asp:control in an
asp:cell?
>
NO thats definitely not correct ... I use the table control all the
time to display all sorts of controls checkboxes, radio buttons,
button, link buttons, hyperlinks ... and designer does also support
this.. no idea why you are not able to add controls to the table cell
Thanks for affirming that. I can tell you how I am using this:
1. I create the table by dragging the web controls table from the
toolbar to the asp.net page in designer.
2. On the table properties, I click rows and add 1 row.
3. In that row, I add, say, 2 cells.

At this point One would think I could drag and drop an asp:label
control to one of the cells, but no go. Even when I add some text to
the cell thinking that maybe the cell had collapsed. Still no dice.
Perhaps there is a table or row/cell setting I am missing?

Thanks for the advice.

-Guy
>
Guy Noir wrote:
So, I have a table that I only want to appear after some event has
fired. Using the asp:table control and the Visible property, this is a
piece of cake. The problem is that when I try and drop a label control
or any other asp:control to the table, the designer view gives me the
old circle and slash
saying "Nope, can't do that".

If I am wrong here, other then manually adding the control in
code, but that causes some issues in the code behind. Is there a way to
do this in designer mode?

Thanks so much for sharing your expertise.

-Guy
Nov 3 '06 #5

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

Similar topics

0
by: Drew Pawlik | last post by:
Hey guys, I'm having a problem and need some help. I have an <asp:table ...> in my web page, and this table has 2 rows, the first being a header row, and the second row containing an <asp:button>...
4
by: coleenholley | last post by:
I asked the question yesterday: > HI All :-) > > I don't know if I will be able to do this type of formatting, but what I > need to do is have a table row where the text wraps (This is easy)...
0
by: Kristoffer Arfvidson | last post by:
HI! I have the following javascript events in my normal tables. onMouseOver,onMouseOut and onClick Now, when I try to put this in my asp:tablerow it just gets an error msg that literal text is...
8
by: tatemononai | last post by:
I had a beautiful script that was running, well, just beautifully. But then I decided to take a button that fired an event and place it inside a <asp:table. The event WILL NOT FIRE INSIDE THE...
0
by: Davey P | last post by:
I have a asp table which I am populating dynamically server side with various other controls such as text boxes, drop down lists and buttons. The controls in this table are filled with data stored...
1
by: Beffmans | last post by:
Hi I work with .net 1.1 and i wanted to know the difference between a html table and a <asp:table>? Which one is better for a consistent layout of your asp.net pages? ch Beffmans
1
by: Dica | last post by:
i've got a couple of controls within an asp:table and a couple outside. when i add a requiredField validator, it looks like i'm only able to see the controls outside the asp:table within the...
2
by: hooterbite | last post by:
I am using an object datasource to call a stored procedure to update an SQL table. THE STORED PROCEDURE WORKS FINE! THE OBJECTDATASOURCE WORKS FINE! When the textbox is inside a standard HTML tag...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
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: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.