473,698 Members | 2,602 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 1106
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
2464
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
4101
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
4880
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
2028
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
2254
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
4268
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
12527
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
12008
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
4456
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
8680
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...
1
8899
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
8871
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...
1
6528
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
5861
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
4371
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...
1
3052
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
2335
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2007
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.