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

creating controls in table row dynamically

Hi everyone,

I have to create the controls in a button click event.I mean i have a row in a table which is placed in a panel.The row has textbox and check box.
If i click the "click to add" link button,i shud repeat the row with all controls in it.
Any help is appreciated.
thanks in advance....
----------------------------------------------------------------------------------------
HTML view :
------------------------
Expand|Select|Wrap|Line Numbers
  1.  <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click" BorderColor="Red">Click to Add More</asp:LinkButton>
  2.         <asp:Panel ID="Panel1" runat="server" Height="1px" Width="315px">
  3.             <table id="table123">
  4.                 <tr>
  5.                     <td style="width: 100px; height: 1px">
  6.                         <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox></td>
  7.                     <td style="width: 44px; height: 1px">
  8.                         <asp:CheckBox ID="CheckBox3" runat="server" Text="a" /></td>
  9.                     <td style="width: 52px; height: 1px">
  10.                         &nbsp;<asp:CheckBox ID="CheckBox2" runat="server" Text="b" /></td>
  11.                     <td style="width: 45px; height: 1px">
  12.                         &nbsp;
  13.                         <asp:CheckBox ID="CheckBox1" runat="server" Text="c" /></td>
  14.                 </tr>
  15.             </table>
  16.         </asp:Panel>
--------------------------------------------------------------------------------------------------------
Nov 13 '07 #1
1 858
mzmishra
390 Expert 256MB
The belwo link will help you

http://msdn2.microsoft.com/en-us/library/4hk2bed9(VS.71).aspx
Nov 13 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Matthew Clubb | last post by:
Hi, I need help developing an expanding form I've decided that a use of PHP, Mysql and Javascript is the best platform for creating a selection of database interfaces which I'm trying to build...
3
by: Kiyomi | last post by:
Hello, I create a Table1 dynamically at run time, and at the same time, I would like to create LinkButton controls, also dynamically, and insert them into each line in my Table1. I would...
1
by: RJN | last post by:
Hi Sorry for posting again. I have a datagrid which is put inside a div tag to make it scrollable. I need to page the datagrid. The page numbers appear at the bottom of the datagrid and has...
2
by: Chad | last post by:
I have a problem that I am desperate to understand. It involves dynamically adding controls to a Table control that is built as a result of performing a database query. I am not looking to...
4
by: Shiju Poyilil | last post by:
Hello EveryBody, I have a dropdownlist with some values as .net server controls & a button , on clicking a button i need to generate the choosen contorl dynamically. I am giving a small glimpse...
2
by: Patrick | last post by:
I want to define a set of web-form templates in XML and render the equivalent web-form with ASP.NET, then process any input server controls on the form. Reading the XML file from Page_load is...
1
by: Jeffrey Todd | last post by:
I have successfully created functionality that mostly models what I'm trying to do - which is dynamically insert controls into a user control (ascx), and insert validation controls, also...
5
by: SalamElias | last post by:
I am creating several chkBoxes dynamically and assigning an event handler in the Page_load as foillows ***************************** Dim chkCatOption As CheckBox = New CheckBox chkCatOption.Text...
4
by: mohaaron | last post by:
I can think of a lot of reasons why this might need to be done but as far as I can tell it's not possible. I've been looking for a way to add HtmlTableRows to a table using a button click for a...
8
by: BillE | last post by:
When I create a control dynamically and it grows according to the content, the control Height property still returns the original default control height instead of the height after expanding. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...
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
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
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...

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.