Hi guys,
its been a while since ive done OO programming so am a little rusty. I am building a web application that will take a dynamic (via javascript) number of input fields. These will then be submitted and processed but I am a bit unsure how to achieve this so I have a few questions:
1.) The user will be able to click a button that will add more input fields via javascript. Will these fields be accessable to c# once submitted, bearing in mind that they wont be <asp:... tags? Is it enough to add the 'runat="server"' property to the standard HTML input tag?
2.) Once the input fields have been submitted what is the best way to process them? I am thinking that i should design a class describing a group of inputs and for each group submitted, create an object of that class and populate it with the input values. How do you keep track of a variable number of objects created? Is the best way for each object, assign it to an array index and then simply loop through the array to access the object?
Any help would be great guys!
its been a while since ive done OO programming so am a little rusty. I am building a web application that will take a dynamic (via javascript) number of input fields. These will then be submitted and processed but I am a bit unsure how to achieve this so I have a few questions:
1.) The user will be able to click a button that will add more input fields via javascript. Will these fields be accessable to c# once submitted, bearing in mind that they wont be <asp:... tags? Is it enough to add the 'runat="server"' property to the standard HTML input tag?
2.) Once the input fields have been submitted what is the best way to process them? I am thinking that i should design a class describing a group of inputs and for each group submitted, create an object of that class and populate it with the input values. How do you keep track of a variable number of objects created? Is the best way for each object, assign it to an array index and then simply loop through the array to access the object?
Any help would be great guys!