storing all page controls in dictionary object

tomhil

Member
Joined
Jan 23, 2012
Messages
6
Programming Experience
1-3
hi all ,

I'm trying to iterate through all the controls in a page and store their values in a dictionary object. in classic asp i would probably do something like
VB.NET:
For Each obj In Request.Form                                            
dictionary.Add Request.Form.Key(obj), Request.Form.Item(obj)    
Next

but this doesn't work in .net. Can someone guide me in the right direction? Thank you!
 
Back
Top