473,756 Members | 1,841 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2835
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.....hrmm mmmm

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
1630
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> to add rows to the table. Well, when I add the first row it shows up, but if I try to add any more rows, the one I added + the rest of them all disappear. I tried saving the table to a Session variable, but that didn't work. I'm not really sure...
4
1947
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) the first > line of text is font size 10 pt and the second (wrapped text) is 6 pt. I > know how to create a style sheet to get all of my font one size or the > other, but does any one have any suggestions on how to do this?
0
1395
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 not allowed in tablerow... :( When I tryed to put this table as a normal <table> it works, but, for some reason it automaticly makes an </td></tr> before the new asp:table comes in... therefore not achieving my goals in design... :(
8
3891
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 TABLE!?! When I move the button outside the table, it works just fine. Inside the table, it doesn't. What gives?
0
1190
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 in a data table (if there is any). On the first load of the page I create the datatable and set the columns up to store the data entered into the controls within my asp table. I then have a tablecreate method which basically checks to see if any...
1
2685
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
1341
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 'ControlToValidate' dropdown. is this right or am i missing something? tks
2
6631
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 <table>, it passes the value of the textbox to the stored procedure, as expected. When the textbox is inside an <asp:table> tag, the default value assigned in the FormParameter tag is passed to the stored procedure, as if it can't find the...
0
9455
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9271
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10031
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9869
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9838
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8709
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6534
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5140
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3805
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 we have to send another system

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.