473,769 Members | 5,900 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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:TableCel l Text="Email:"></asp:TableCell>
<asp:TableCel l>
<asp:TextBox id="email" MaxLength="50"
runat="server"> </asp:TextBox>
</asp:TableCell>
</asp:TableRow>
</asp:Table>

thanks
Nov 18 '05 #1
1 12292
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******** ******@TK2MSFTN GP12.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:TableCel l Text="Email:"></asp:TableCell>
<asp:TableCel l>
<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
1949
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?
6
5325
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 works fine when we call the datatable and bind it to a data grid using datagridname.DataBind(), but I have an ASP table, with calculations using tbl_name.row(1).cells(1) and the result of the calculation is put in a specific row and cell. I have...
1
1320
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 int cnt = Products.Count; string key = ""; Control c; TableRow r = new TableRow();
4
1593
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 event? dim dr as sqlDataReader Dim tempCell As TableCell dr=........
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...
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...
4
2836
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 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...
5
1902
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" BorderColor="Cyan" BorderWidth="1px" meta:resourcekey="tblControlsResource1"> <asp:TableFooterRow meta:resourcekey="TableFooterRowResource1"
0
10210
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...
1
9990
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
9861
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8869
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...
1
7406
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6672
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
5446
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3956
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
3
2814
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.