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

Adding controls at run time


Hi,

I need to create a set of controls during the run time. Initially
the page should contain single row(column1: combo box, colomn2: text
box, column3: combo box and colomn4: button).

If i click the button(column4) during the run time the same set of
first row have to be generated, in the second row if i click the
button in the colomn4 then third row have to generated with same set
of controls.

Please tell me how to do this. If possible please send me the code or
link to do.

Thanks in advance.

Rajesh

Apr 2 '07 #1
2 1314
On Apr 2, 10:19 am, "Rajesh" <rajesh1...@gmail.comwrote:
Hi,

I need to create a set of controls during the run time. Initially
the page should contain single row(column1: combo box, colomn2: text
box, column3: combo box and colomn4: button).

If i click the button(column4) during the run time the same set of
first row have to be generated, in the second row if i click the
button in the colomn4 then third row have to generated with same set
of controls.

Please tell me how to do this. If possible please send me the code or
link to do.

Thanks in advance.

Rajesh
Hi,

Any one please help me

Apr 2 '07 #2
Simplest answer would be
Page.Form.Controls.Add(<new control >);

Looking at your question , you may want to order it as well, so....try
putting all your controls in a server side table to have complete control.

As an alternative, you may also want to try using javascript instead.
Reduces the amount of server-calls just to add another row to your page.

Hope that helps,
--
Sashidhar Kokku
ikaSystems Corp
"Rajesh" wrote:
On Apr 2, 10:19 am, "Rajesh" <rajesh1...@gmail.comwrote:
Hi,

I need to create a set of controls during the run time. Initially
the page should contain single row(column1: combo box, colomn2: text
box, column3: combo box and colomn4: button).

If i click the button(column4) during the run time the same set of
first row have to be generated, in the second row if i click the
button in the colomn4 then third row have to generated with same set
of controls.

Please tell me how to do this. If possible please send me the code or
link to do.

Thanks in advance.

Rajesh

Hi,

Any one please help me

Apr 2 '07 #3

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

Similar topics

2
by: avivgur | last post by:
Hello, I am writing a program in Visual C# and I have encountered a problem. In my program I want to dynamically create a multitude of controls (thousands) on a form. The problem is that calling...
3
by: Jim Heavey | last post by:
Trying to figure out the technique which should be used to add rows to a datagrid. I am thinking that I would want an "Add" button on the footer, but I am not quite sure how to do that. Is that...
2
by: Tim Marsden | last post by:
Hi, This is what I am doing, please comment if this is the correct way. I need to add controls to a form dynamically. Within the Page_Load event (is not Postback) I run a routine to create the...
4
by: Bas Groeneveld | last post by:
I am developing an ASP.NET application part of which consists of a data entry wizard defined by entries in a data table - ie the controls on each page of the wizard are determined by definitions in...
0
by: Sinisa Ruzin | last post by:
Hi all, I had problem with dynamically adding/removing controls;ascx, Controls.Add(Page.LoadControl... in the same page of the IBuySpy portal. ASP.NET, C#. I added buttons to the main ASCX loaded...
0
by: Sileesh | last post by:
Hi I have html table and a Button in an Aspx page. I am adding one row with some textboxes to Html table each time i click on the Button thru Javascript. Now problem is when when i try to...
9
by: Neo Geshel | last post by:
I have strip-mined, strip-searched, and completely exhausted the Internet (up to the 30th page on Google, with 100 results per page!!), all without finding an answer to my question AS TO WHY IT...
9
by: Kadett | last post by:
Hi all, I have following problem: I'm creating a ListView (Details) control at run-time and filling it with some records (let's say 10 000). This operation seems to be quite fast, but when I call...
2
by: _MC_ | last post by:
Hi, i want to structure two elements (each conists of 1 Label and 1 Textbox) in an Table. As I use an Content Place Holder, i thought it is possible to add the table via Controls.add(Literal)....
7
by: =?Utf-8?B?V2ViQnVpbGRlcjQ1MQ==?= | last post by:
I'm adding subheadings to a gridview. Each sub head has a few link buttons. I'm adding the controls in the rowdatabound event code follows: sorry about the length here. I have to be missing...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
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...

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.