I am currently working on a project to process webforms the very easy way. I use DevExpress Textboxes and memo's etc to build my webforms. Ive created a process.aspx and form1.aspx. Form1.aspx submits its values (via session) to process.aspx where it will be posted into the database.
Now i need to be able to loop throught my controls on my form1.aspx so i dont need to write all the code for every control listed in the page. This also makes it easier for me to add new forms.
Bassicly what i want is:
-Loop through all the controls on the form page and paste it into an session where the key is numeric and the value is the input from the control. ['text0'], ['text1'], ['text2']
-Loop through the session and store it in the database (database part is already build!).
I have never worked with sessions before and i dont know how to loop through the controls on my webform, could someone please help me out ?