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

putting asp:Textbox in a asp:Table cell?

Hello,

How can I put a textbox control into a cell of an asp:Table? I was not
able to do it from the properties sheet, so I put it in via html tab,
but now I can't select it from the Design tab (nor select it from the
Properties tab on the right). Any ideas?

<asp:Table id="Table1" runat="server">
<asp:TableRow>
<asp:TableCell Text="Email:"></asp:TableCell>
<asp:TableCell>
<asp:TextBox id="email" MaxLength="50"
runat="server"></asp:TextBox>
</asp:TableCell>
</asp:TableRow>
</asp:Table>

thanks
Nov 18 '05 #1
1 12196
Ed, I don't think there is a way to do this easily in the designer. Unless
you specifically need to use the asp:table I'd stick to standard html table
tags as this is more efficient (less server side processing going on to
render the page) and you get to edit the table cell contents easily in the
designer. In this case your code below would become:

<table>
<tr>
<td>Email</td>
<td>
<asp:textbox id="email" maxlength="50" runat="server"></asp:textbox>
</td>
</tr>
</table>

--
Steve Willcock, MCSD
http://www.willcockconsulting.com/
"Ed West" <We**@westlake.com> wrote in message
news:u2**************@TK2MSFTNGP12.phx.gbl...
Hello,

How can I put a textbox control into a cell of an asp:Table? I was not
able to do it from the properties sheet, so I put it in via html tab,
but now I can't select it from the Design tab (nor select it from the
Properties tab on the right). Any ideas?

<asp:Table id="Table1" runat="server">
<asp:TableRow>
<asp:TableCell Text="Email:"></asp:TableCell>
<asp:TableCell>
<asp:TextBox id="email" MaxLength="50"
runat="server"></asp:TextBox>
</asp:TableCell>
</asp:TableRow>
</asp:Table>

thanks

Nov 18 '05 #2

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

Similar topics

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)...
6
by: coleenholley | last post by:
I have a Class Module written in VB that calls an RPC (written in COBOL) we have written code to read the data from the RPC, and we create a temporary datatable to store the data from the RPC. This...
1
by: Dave Bennett | last post by:
I am hoping someone can help me because I am really beginning to hate IE. I am using the following code to generate a dynamic table. private void buildTable(ArrayList Products) { //Variables...
4
by: stb | last post by:
I have an empty asp:table on a form. Rows and cells in the rows are added programatically. At the end of each row, there is a cell with a button inside it. How do I catch the button's click...
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...
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...
4
by: Guy Noir | last post by:
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...
5
by: =?Utf-8?B?THVib21pcg==?= | last post by:
Hi, I have the table like below: <asp:Table ID="tblControls" runat="server" HorizontalAlign="Center" Width="768px" Font-Names="Tahoma" Font-Size="Small" BorderStyle="Solid"...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.