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

TableCell

I create a TableCell by

TableCell cell = new TableCell()

but I could not find how to add a TextBox inside this cell. Any ideas?

Thanks in advance
Serdar KALAYCI
--

Nov 17 '05 #1
4 5381
WebControls.TextBox txt = new WebControls.TextBox();
cell.Controls.Add(txt);

Karl
"Serdar Kalaycý" <se***********@unisec.com.tr> wrote in message
news:ew****************@tk2msftngp13.phx.gbl...
I create a TableCell by

TableCell cell = new TableCell()

but I could not find how to add a TextBox inside this cell. Any ideas?

Thanks in advance
Serdar KALAYCI
--

Nov 17 '05 #2
Got it, here's the code if anyone wonders...

TableCell cell = new TableCell();
TextBox text1 = new TextBox();
cell.Controls.Add (text1);
"Serdar Kalaycý" <se***********@unisec.com.tr> wrote in message
news:ew**************@tk2msftngp13.phx.gbl...
I create a TableCell by

TableCell cell = new TableCell()

but I could not find how to add a TextBox inside this cell. Any ideas?

Thanks in advance
Serdar KALAYCI
--

Nov 17 '05 #3
I have one more question. I added a Button inside a Table at design time by
changing HTML codes, but I can't access it's events or even see it in the
components list on the Properties window.

Serdar KALAYCI
"Karl Seguin" <kseguin##crea.ca> wrote in message
news:uO**************@TK2MSFTNGP11.phx.gbl...
WebControls.TextBox txt = new WebControls.TextBox();
cell.Controls.Add(txt);

Karl
"Serdar Kalaycý" <se***********@unisec.com.tr> wrote in message
news:ew****************@tk2msftngp13.phx.gbl...
I create a TableCell by

TableCell cell = new TableCell()

but I could not find how to add a TextBox inside this cell. Any ideas?

Thanks in advance
Serdar KALAYCI
--


Nov 17 '05 #4
if you are adding an object programatically, like your butotn, you'll also
have to attach the event programatically.

in vb.net, you can use:
addhandler yourButton.click, AddressOf yourFunctionHandler

in c#, you can use:
yourButton.Click += new EventHandler(yourFunctionHandler);
Make sure that your button is created, and you attach your handler on
postback also (ie, don't wrap it in an !page.IsPostback)

Karl

"Serdar Kalaycý" <se***********@unisec.com.tr> wrote in message
news:ul**************@TK2MSFTNGP11.phx.gbl...
I have one more question. I added a Button inside a Table at design time by changing HTML codes, but I can't access it's events or even see it in the
components list on the Properties window.

Serdar KALAYCI
"Karl Seguin" <kseguin##crea.ca> wrote in message
news:uO**************@TK2MSFTNGP11.phx.gbl...
WebControls.TextBox txt = new WebControls.TextBox();
cell.Controls.Add(txt);

Karl
"Serdar Kalaycý" <se***********@unisec.com.tr> wrote in message
news:ew****************@tk2msftngp13.phx.gbl...
I create a TableCell by

TableCell cell = new TableCell()

but I could not find how to add a TextBox inside this cell. Any ideas?

Thanks in advance
Serdar KALAYCI
--



Nov 17 '05 #5

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

Similar topics

0
by: Randy | last post by:
Hello All, Is there any way to make this happen... Say I want to make a table with 3 rows. The first row has two TableCells each with a width of 300. The second row has one TableCell with the...
2
by: George Durzi | last post by:
Consider this pseudo HTML from a web form <asp:Table> <asp:TableRow> <asp:TableCell> <asp:Table> <asp:TableRow> <asp:TableCell></asp:TableCell> <asp:TableCell></asp:TableCell>...
6
by: Mr. x | last post by:
Hello, I have the following aspx code : <form id = "main_form" runat = "server"> <asp:Table dir = "rtl" runat = "server"> <asp:TableRow> <asp:TableCell id =...
3
by: Andre | last post by:
Hi, Did someone know why this code does'nt work (The TableCell Width). The cell don't have 600 and 150 like writed in width="600" and width="150". <asp:datagrid id="DataGrid1" ...
6
by: hb | last post by:
Hi, I have a page bill.aspx and its code-behind bill.aspx.cs. On bill.aspx I have: === Select a month: <asp:dropdownlist runat="server" id="lstDate" autopostback="True" /> <br> <asp:table...
0
by: Diane Yocom | last post by:
I'm very new to ASP.Net and probably jumped in a little over my head, but... I'm trying to create a user control that will control navigation through my site. It's sortof like Amazon.com, where...
2
by: Amelyan | last post by:
If I have spaces in my Text property of Label, and I add it to TableCell, it wraps at spaces. E.g. Label lb = new Label(); lb.Text = "Hello, World!" TableCell cell = new TableCell();...
2
by: somequestion | last post by:
how can i solve this problem i really wanna apply background image into the <asp:TableCell> but it's not allow i think i use asp.net 2.0 give me some help..please
0
by: DanG | last post by:
During grid field validation, I would like to generate a message for the user to tell which column had the error. So I have a control (textbox, dropdownlist, checkbox, etc.), and would like to...
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: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
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:
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 =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
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...

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.