Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > dynamic controls: architect advice needed

Reply
Thread Tools

dynamic controls: architect advice needed

 
 
Durtal
Guest
Posts: n/a
 
      06-29-2009

Hello everybody,

First of all, sorry for my poor english. I don't know if I'm in a good news
group but would like to have some advice/feedback on a task I have to do.
Before telling you what I have to do I would like to put you in the context.
My company develops an ASP.NET application (classic web forms) to manage
informations about internal employees. Users have to fill many forms with
many fields to collect data.
Some fields are known in advance like employees firs name, last name, phone,
etc. To collect data for these fields we use classic .ascx controls with
textboxes, dropdowlists, etc. etc.
But the problem is the wish to allow administrators to add their own fields
(textboxes, dropdownlists, checkboxes, etc.) from administration menu on the
fly for every form.
Ex: for the form "Employee Personal information" administrator would like to
collect more data than the name, phone and other fileds in the form. He adds
for exemple a TextBox "Your prefered color" and one DropDownList "Your
prefered car" with values form database lookup table. The idea is to build
your form without asking a programmer to add more controls to the forms in
the aspx pages.

So when the employee fils the form "Personal Information" these two new
fields should be displayed and data saved back to the database. More, the
search engine should search on these two fields.

My idea is to save each added control by administrator in a datababse table.
Each control has its own collection of values (collection of one item for
textbox control for exemple).
the idea is to provide a weak coupling with GUI and a databse. I would not
like to do all the stuff from scratch if we move to wpf. I know that there
will be some plumbing code to create dynamicly controls from the database
but the business logic shouldn't be donne in each aspx page where we want to
display those controls.

I also checked an XML field in SQL Server to store my forms in XML but I'm
affraid that the performances will be poor. The queries for the search
engine will be also not easy to do.

The same for infopath which I think do not fit my needs.

Maybe should I use an template for controls ?

The features I have to ensure:

- weak coupling with GUI and the database
- translation of labels for my controls
- storing values of these controls
- easy to search for the search engine.

Sorry for such a long post but if you have an idea of how can I achieve my
goal or just some hints to point me to the right direction I will
appreciate.

Thank you

Durtal



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Applications Architect Needed - Florida AppArchFLorida Java 0 08-02-2007 06:17 PM
Talented C++ Architect needed Security Recruiter-Sallee C++ 1 06-11-2007 05:25 PM
ecommerce Architect needed, Concord MA Lisa ASP .Net 0 06-13-2006 02:55 PM
Software Architect == Building Architect? FL Code Monkey MCSD 6 11-16-2004 01:37 AM
Availability of Dynamic Architect - Build advanced dynamic web pages without code! jonjon Javascript 0 10-29-2003 10:10 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57