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

System.Web.UI.WebControls.Table

Hi,

I am using vb.net and visual studio 2003.
I have dragged a table webcontrol onto the designer server and configured a
few columns and cells in the editor for the table control.

Next I wanted to do things like add textbox websever controls to the
individual cells. However, the designer will not allow me to drag controls
from the toolbox to tinside the newly generated table.

I can create new controls at another point on the aspx page and then "copy
and paste" then into the table web control cells, but I am thinking if the
designer does not let me add them to the table straight off then perhaps
this is not the why to do it.

so my question is.

how do I add controls to a table web server control, is my only choice to do
it programatically

any help is appreciated.

cheers

martin.
Nov 18 '05 #1
5 2582
Why not just use a datagrid, you can do this easily in templated columns.

"martin" <St**************@yahoo.com> wrote in message
news:OJ**************@tk2msftngp13.phx.gbl...
Hi,

I am using vb.net and visual studio 2003.
I have dragged a table webcontrol onto the designer server and configured a few columns and cells in the editor for the table control.

Next I wanted to do things like add textbox websever controls to the
individual cells. However, the designer will not allow me to drag controls
from the toolbox to tinside the newly generated table.

I can create new controls at another point on the aspx page and then "copy
and paste" then into the table web control cells, but I am thinking if the
designer does not let me add them to the table straight off then perhaps
this is not the why to do it.

so my question is.

how do I add controls to a table web server control, is my only choice to do it programatically

any help is appreciated.

cheers

martin.

Nov 18 '05 #2
Ok,

cheers for that, I never though of using a datagrid cause none of my data is
bound from a datasource.
I will look at this method.

cheers

martin.

"Rick Spiewak" <ri*********@mindspring.com> wrote in message
news:eY**************@TK2MSFTNGP12.phx.gbl...
Why not just use a datagrid, you can do this easily in templated columns.

"martin" <St**************@yahoo.com> wrote in message
news:OJ**************@tk2msftngp13.phx.gbl...
Hi,

I am using vb.net and visual studio 2003.
I have dragged a table webcontrol onto the designer server and configured
a
few columns and cells in the editor for the table control.

Next I wanted to do things like add textbox websever controls to the
individual cells. However, the designer will not allow me to drag
controls from the toolbox to tinside the newly generated table.

I can create new controls at another point on the aspx page and then "copy and paste" then into the table web control cells, but I am thinking if the designer does not let me add them to the table straight off then perhaps
this is not the why to do it.

so my question is.

how do I add controls to a table web server control, is my only choice

to do
it programatically

any help is appreciated.

cheers

martin.


Nov 18 '05 #3
Your original idea of using a table is better. Why to use datagrid if all
you need is to layout the other controls properly? If it is the case, I
suggest you to make another step towards simplicity and to replace the table
webcontrol with a table HTML control. You can put webcontrols in the HTML
table cells, and the designer will let you do it without any problems. BTW,
you don't have to use designer view in the first place. You can populate
your form in HTML view in much more flexible way.

Eliyahu

"martin" <St**************@yahoo.com> wrote in message
news:OS**************@TK2MSFTNGP11.phx.gbl...
Ok,

cheers for that, I never though of using a datagrid cause none of my data is bound from a datasource.
I will look at this method.

cheers

martin.

"Rick Spiewak" <ri*********@mindspring.com> wrote in message
news:eY**************@TK2MSFTNGP12.phx.gbl...
Why not just use a datagrid, you can do this easily in templated columns.

"martin" <St**************@yahoo.com> wrote in message
news:OJ**************@tk2msftngp13.phx.gbl...
Hi,

I am using vb.net and visual studio 2003.
I have dragged a table webcontrol onto the designer server and

configured
a
few columns and cells in the editor for the table control.

Next I wanted to do things like add textbox websever controls to the
individual cells. However, the designer will not allow me to drag

controls from the toolbox to tinside the newly generated table.

I can create new controls at another point on the aspx page and then "copy and paste" then into the table web control cells, but I am thinking if the designer does not let me add them to the table straight off then perhaps this is not the why to do it.

so my question is.

how do I add controls to a table web server control, is my only choice

to
do
it programatically

any help is appreciated.

cheers

martin.



Nov 18 '05 #4
It's just a glitch in the Designer. It's fine to add your Controls in the
way you have been (copying and pasting).

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"martin" <St**************@yahoo.com> wrote in message
news:OJ**************@tk2msftngp13.phx.gbl...
Hi,

I am using vb.net and visual studio 2003.
I have dragged a table webcontrol onto the designer server and configured a few columns and cells in the editor for the table control.

Next I wanted to do things like add textbox websever controls to the
individual cells. However, the designer will not allow me to drag controls
from the toolbox to tinside the newly generated table.

I can create new controls at another point on the aspx page and then "copy
and paste" then into the table web control cells, but I am thinking if the
designer does not let me add them to the table straight off then perhaps
this is not the why to do it.

so my question is.

how do I add controls to a table web server control, is my only choice to do it programatically

any help is appreciated.

cheers

martin.

Nov 18 '05 #5
cheers for that Eliyahu

the reason I want to use a webcontrol table instead of a straight HTML table
is so that I can access the individual cells of the table from my code
behind page.
basically I want to change the css class of the individual cells depending
on whether a link in a cell is clicked or not.

I am not sure that I can access individual cells of a html table from a code
behind page.

cheers

martin.


"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Your original idea of using a table is better. Why to use datagrid if all
you need is to layout the other controls properly? If it is the case, I
suggest you to make another step towards simplicity and to replace the table webcontrol with a table HTML control. You can put webcontrols in the HTML
table cells, and the designer will let you do it without any problems. BTW, you don't have to use designer view in the first place. You can populate
your form in HTML view in much more flexible way.

Eliyahu

"martin" <St**************@yahoo.com> wrote in message
news:OS**************@TK2MSFTNGP11.phx.gbl...
Ok,

cheers for that, I never though of using a datagrid cause none of my data
is
bound from a datasource.
I will look at this method.

cheers

martin.

"Rick Spiewak" <ri*********@mindspring.com> wrote in message
news:eY**************@TK2MSFTNGP12.phx.gbl...
Why not just use a datagrid, you can do this easily in templated columns.
"martin" <St**************@yahoo.com> wrote in message
news:OJ**************@tk2msftngp13.phx.gbl...
> Hi,
>
> I am using vb.net and visual studio 2003.
> I have dragged a table webcontrol onto the designer server and

configured
a
> few columns and cells in the editor for the table control.
>
> Next I wanted to do things like add textbox websever controls to the
> individual cells. However, the designer will not allow me to drag

controls
> from the toolbox to tinside the newly generated table.
>
> I can create new controls at another point on the aspx page and then

"copy
> and paste" then into the table web control cells, but I am thinking
if the
> designer does not let me add them to the table straight off then perhaps > this is not the why to do it.
>
> so my question is.
>
> how do I add controls to a table web server control, is my only

choice to
do
> it programatically
>
> any help is appreciated.
>
> cheers
>
> martin.
>
>



Nov 18 '05 #6

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

Similar topics

2
by: Shannon | last post by:
I am having a very strange issue with my asp.net application. I have created a datagrid which dynamically gets populated from a person choosing a value from a dropdown list and entering a quantity...
2
by: dan | last post by:
I have created a class called BasePage that inherits from System.Web.UI.Page so that I can implement a "template" for all pages in an app. My BasePage class is in a class library project and there...
0
by: Dan | last post by:
I posted a similar post regarding problems with VS.NET design mode. I fixed that problem (with much thanks to this newsgroup) but now I have a second problem. I have created a class called...
3
by: Luis Esteban Valencia | last post by:
A page let of work for me I commented almost all lines but nothing the code is this
2
by: Nathan Sokalski | last post by:
When using a System.Web.UI.WebControls.Image object, how do I control both vertical and horizontal alignment? Both directions are controlled using the ImageAlign property, which prevents setting...
2
by: loga123 | last post by:
Hi All, I am using Link Button for DELETE on the gridview. When I click on DELETE link, I get the ArgumentOutOfRangeException. But...it deletes the record from table in the database. On...
1
by: loga123 | last post by:
Hi All, I am using Link Button for DELETE on the gridview. When I click on DELETE link, I get the ArgumentOutOfRangeException. But...it deletes the record from table in the database. On...
0
by: DC | last post by:
Why would this code give me the error "Could not load type System.Web.UI.WebControls.AccessDataSource from assembly System.Web, Version=1.0.5000.0" at line 16... <form id="form1"...
1
by: thithi | last post by:
Please help me " System.Data.SqlClient.SqlException: Prepared statement '(@Name varchar(100),@Describes varchar(100),@Money char(10))Upda' expects parameter @Describes, which was not supplied. at...
1
by: differentsri | last post by:
THIS IS AN ASP.NET 1.1 APPLICATION IAM TRYING TO UPDATE THE FIELD BUT I AM NOT ABLE TO UPDATE IT? CAN U TELL THE REASON ? IT IS GIVING THE FOLLOWING ERROR BELOW I HAVE ALSO GIVEN THE CODE OF...
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
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...
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: 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...
0
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: 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

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.