Monday, September 7, 2009

Accessing and Saving a set of fields from a webform

Hello everyone,



I have a set of fields in my webform I want to save/update. Its an overview of categories and prices - so the form represents a couple of datasets an I want to update/save them all at once. One row contains the ID - if not a new dataset, a 2 category ids and a price.

When I try to access them via FormCollection I get all the fields together in one String - what would be ok if there would not be prices. So for example I get the prices returned like 13,30,23,10,50,60. I could split them but as I don't know if the returned values were entered as 13,30 and 23 or 13 and 30,23 thats not really possible.

I think there must be an easy way to do that - maybe someone could help me how to access the data in the right way.

Thanks for your help!



Best regards,

Florian

View Full Details...............................

No comments:

Post a Comment