473,738 Members | 5,084 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need sample for dynamic editing

All,
looking for sample project on how to add/edit/delete controls from an aspx
page at runtime... any pointers is most appreciated!!
My controls are simple: Label, Textbox, and DropList... I only want a
handful of custom properties to be set for the control...

MMTIA
wardeaux
Nov 18 '05 #1
3 1109
You need to first add a container to your aspx like the webcontrol
table.
Once you have that you can add webcontrols to the table dynamically
from the code behind.

Table.Controls. Add(new control);

"Wardeaux" <wa******@bells outh.net> wrote in message news:<e2******* *******@TK2MSFT NGP11.phx.gbl>. ..
All,
looking for sample project on how to add/edit/delete controls from an aspx
page at runtime... any pointers is most appreciated!!
My controls are simple: Label, Textbox, and DropList... I only want a
handful of custom properties to be set for the control...

MMTIA
wardeaux

Nov 18 '05 #2
Bliss,
thanks for the reply... after looking at my original post, I see I didn't
include enough information... :( I need an web interface for the USER to be
able to design and layout controls at runtime.... I know there are several
HTML editors, I need something with a little more control over appearance,
properties and functionality.. .
know of anything like THAT?? :)
Thanks again for the input....
wardeaux

"Bliss" <bg***********@ landolakes.com> wrote in message
news:61******** *************** ***@posting.goo gle.com...
You need to first add a container to your aspx like the webcontrol
table.
Once you have that you can add webcontrols to the table dynamically
from the code behind.

Table.Controls. Add(new control);

"Wardeaux" <wa******@bells outh.net> wrote in message

news:<e2******* *******@TK2MSFT NGP11.phx.gbl>. ..
All,
looking for sample project on how to add/edit/delete controls from an aspx page at runtime... any pointers is most appreciated!!
My controls are simple: Label, Textbox, and DropList... I only want a
handful of custom properties to be set for the control...

MMTIA
wardeaux

Nov 18 '05 #3
Hey man,

sounds to me like you are talking about somthing I just did at work. I
needed to set up a web page that would allow the user to describe how
they want a control to be rendered to the screen.

Example:
Take a simple survey application. When a user defines how the want the
questions to show up on the page etc... In the survey set up the pick
how they want it to be laid out and what controls to use for each
qestion. etc...

If that is what you are thinking about this is what I did. I set up
some tables that will hold all the information that I want to
dynamically build at runtime. The records in these tables are created
through a web form that the user fills out describing how they want
each question to look. For instance they would say I want this
question to use radio buttons and this question to use check boxs.
This is all stored in the data base so I can use it later when they
need to be rendered to the screen in the form of a survey question.

Not sure if this is what you want but if so let me know I would be
happy to tell you more about what I did.

Thanks,
B

"Wardeaux" <wa******@bells outh.net> wrote in message news:<ug******* ******@TK2MSFTN GP14.phx.gbl>.. .
Bliss,
thanks for the reply... after looking at my original post, I see I didn't
include enough information... :( I need an web interface for the USER to be
able to design and layout controls at runtime.... I know there are several
HTML editors, I need something with a little more control over appearance,
properties and functionality.. .
know of anything like THAT?? :)
Thanks again for the input....
wardeaux

"Bliss" <bg***********@ landolakes.com> wrote in message
news:61******** *************** ***@posting.goo gle.com...
You need to first add a container to your aspx like the webcontrol
table.
Once you have that you can add webcontrols to the table dynamically
from the code behind.

Table.Controls. Add(new control);

"Wardeaux" <wa******@bells outh.net> wrote in message

news:<e2******* *******@TK2MSFT NGP11.phx.gbl>. ..
All,
looking for sample project on how to add/edit/delete controls from an aspx page at runtime... any pointers is most appreciated!!
My controls are simple: Label, Textbox, and DropList... I only want a
handful of custom properties to be set for the control...

MMTIA
wardeaux

Nov 18 '05 #4

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

Similar topics

2
2466
by: IVer Erling Årva | last post by:
Hi! I am looking into making a database application and to limit the client<->server traffic I want to handle all entry/amendment of the data in the browser and save it all once the entry is completed. The problem is that I need to include a dynamic table where the user can add, amend and delete rows. For the sake of illustrating what I mean I can use the person / pet sample where you have one person with several pets, e.g. Person...
19
4106
by: James Fortune | last post by:
I have a lot of respect for David Fenton and Allen Browne, but I don't understand why people who know how to write code to completely replace a front end do not write something that will automate the code that implements managing unbound controls on forms given the superior performance of unbound controls in a client/server environment. I can easily understand a newbie using bound controls or someone with a tight deadline. I guess I need...
1
4881
by: Arda Han | last post by:
Hi friends, I need a sample application for inserting,updating,deleting database rows. In this example I want learn creating MDI applications. Inserting,Deleting,Editing database rows on runtime. If you have sample application or if you have free time please send me a sample application.
1
2032
by: seanmayhew | last post by:
I have a form page that that while editing saves the data to an xml doc before submitting to db. On each page unload it saves the xmldoc as the user can add multiple items to the company like product types etc. So for instance Im adding a fruit company while adding a fruit company I allow the user to add types of fruit they carry and display it dynamically using an <asp:table> with image
8
2257
by: Sandy Pittendrigh | last post by:
I have a how-to-do-it manual like site, related to fishing. I want to add a new interactive question/comment feature to each instructional page on the site. I want (registered) users to be able to add comments at the bottom of each page, similar to the way the php, mysql, apache manuals work. PUNCHLINE_A:
20
4282
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site is structured as an upside-down tree, and (if I remember correctly) never more than 4 levels. The site basically grew (like the creeping black blob) ... all the pages were created in Notepad over the last
4
12537
by: anniebai | last post by:
Please help me with writing a RowUpdating function in C#, I don't know how to grab the current field's value and also get the old value for one of keys (which is ProjectName for editing) of the selected row. I've tried: e.Keys.Count, e.OldValues.Count, e.NewValues.Count -----------> all give zero Some said if TemplateField is used, e.Keys and Oldvalues, NewValues are all empty. Then what suppose to be used in such case? Thanks for any...
3
12011
by: Andrus | last post by:
In VCSE 2008 B2 I created WPF form, added grid an ran it. Form does not show grid. Where to find sample which allows to edit object collection returned by Linq-SQL in WPF grid ? Andrus.
2
4462
Frinavale
by: Frinavale | last post by:
I've created a ASP.NET control that displays a "book" of schedules. It dynamically displays scheduling times and allows the user to page through the schedules. It also lets the user edit the schedule times if the user has permissions to edit schedules. When the user is not editing, or the user is not allowed to edit, the buttons that let the user edit are not displayed. If the user is allowed to edit schedules but they are not editing a link...
0
8968
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8787
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9473
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...
0
8208
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...
0
6053
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
4569
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4824
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3279
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
2
2744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.