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

Need a generic filling form generator.


Hello,
I need to write different kind of forms that the customer can use to enter
data and save the data into database. (The data access will be hand coded)

My problem is that the form may vary .

I therefore need an engine , that can produce the form based on let say an
xml file.
The form may contain textboxes, buttons , labels , pictures etc...

I have heard of xslt. Is it the way to go?

Is there other smart ways of doing this. If any asp.net beta 2 feature
allows this, please let me know.

Many thanks in advance

JB
Nov 19 '05 #1
3 1260
Jensen bredal wrote:
Hello,
I need to write different kind of forms that the customer can use to enter
data and save the data into database. (The data access will be hand coded)

My problem is that the form may vary .

I therefore need an engine , that can produce the form based on let say an
xml file.
The form may contain textboxes, buttons , labels , pictures etc...

I have heard of xslt. Is it the way to go?

Is there other smart ways of doing this. If any asp.net beta 2 feature
allows this, please let me know.

Many thanks in advance

JB


I don't think xslt is going to buy you anything for asp.net because you
won't be able to access the output in the code behind. I would suggest
parsing the xml file and dynamically adding server controls (i.e.
System.Web.UI.WebControl.TextBox/DropDownList etc.) to the page or
something like that. At least you will be able to programatically
access the inputs.

--
Rob Schieber
Nov 19 '05 #2
KMA
Indeed, the key issue is how do you access the keyed in data.

for one page I append an identifier to each repeated control, txtAddress_1,
txtAddress_2 etc.

Then you can iterate the controls, determine their function based on the
name and do something useful with the data content.
"Rob Schieber" <sc******@hotmail.com> wrote in message
news:#s**************@TK2MSFTNGP14.phx.gbl...
Jensen bredal wrote:
Hello,
I need to write different kind of forms that the customer can use to enter data and save the data into database. (The data access will be hand coded)
My problem is that the form may vary .

I therefore need an engine , that can produce the form based on let say an xml file.
The form may contain textboxes, buttons , labels , pictures etc...

I have heard of xslt. Is it the way to go?

Is there other smart ways of doing this. If any asp.net beta 2 feature
allows this, please let me know.

Many thanks in advance

JB


I don't think xslt is going to buy you anything for asp.net because you
won't be able to access the output in the code behind. I would suggest
parsing the xml file and dynamically adding server controls (i.e.
System.Web.UI.WebControl.TextBox/DropDownList etc.) to the page or
something like that. At least you will be able to programatically
access the inputs.

--
Rob Schieber

Nov 19 '05 #3
>
I don't think xslt is going to buy you anything for asp.net because you
won't be able to access the output in the code behind. I would suggest
parsing the xml file and dynamically adding server controls (i.e.
System.Web.UI.WebControl.TextBox/DropDownList etc.) to the page or
something like that. At least you will be able to programatically access
the inputs.

--
Rob Schieber


This sounds reasonable.
Thank you
JB
Nov 19 '05 #4

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

Similar topics

45
by: Joh | last post by:
hello, i'm trying to understand how i could build following consecutive sets from a root one using generator : l = would like to produce : , , , ,
1
by: Joh | last post by:
hello, thanks to all who replied to my post (2005-01-21) - (i can not post inside the original thread as i get "Unable to retrieve message csr7ep$3db$05$1@news.t-online.com" from googlenews :( ...
2
by: hennakapoor | last post by:
How do the form filling software determine which text field gets what data i.e. a typical form filling software will ask the user to enter the username / address / password etc. Whenever it goes to...
0
by: Limpor | last post by:
Hi, I’m working on a solitaire game as my course assignment, and I am having trouble to dealing with Stock class, which consists of an upturned top card plus deck. The code for Stock class: import...
3
by: Tigger | last post by:
I have an object which could be compared to a DataTable/List which I am trying to genericify. I've spent about a day so far in refactoring and in the process gone through some hoops and hit some...
3
by: Hannes | last post by:
Hi guys! I use a generic list which, once filled, will not change. It contains a few 100'000 entries, so I'd like to limit its memory consumption. If I set its capacity to its count after...
7
by: js | last post by:
Hi, I'm looking for RSS/ATOM generator I can use in Python. I searched on pypi and the other places but I couldn't find any options on this. (I found many parsers, though) Is there any de-fact...
1
by: porkchop | last post by:
I have made a check mark box on a form to populate text boxes. (a convience for data entery people, for same data, check mark) This form is viewed as a continuous form, and when we check mark the...
5
by: Bill McCormick | last post by:
Hi C# programmers, I'd like to be able to call a static function or property and have it return a generic list. The compiler indicates that "static types cannot be used as generic arguments", so...
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: 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
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
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.