Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Loop through DataGrid control


Message #1 by bmcelhany@h... on Mon, 6 Jan 2003 23:07:50
Hello, 

I have a DataGrid control that I'm using to create an online test. The 
first two columns (both hidden) are questionID (which is unique), and 
question type (which could be true/false, fill in the blank, or multiple 
choice). The 3rd column contains the actual question and 3 panel controls 
(all invisible). 

On the ItemDataBound event, I check for the value of "questionType" and 
then display the correct panel (for "true/false" this will be a 
RadioButtonList with True or False options, for "fill in the blank" this 
will be an empty TextBox, and for "multiple choice" it will be a databound 
RadioButtonList). 

Up to this point, everything works fine. Once the user completes the test, 
I need to find some way to retrieve the values from the various controls. 
I'm really not sure where to start. Any thoughts? 

Thanks in advance! 

Brian

  Return to Index