Author: selby14 | Posted on: 6/11/2009 4:01:03 PM | Views : 384

I've created a survey form which dynamically creates a radiobuttonlist or textbox (depending on the question) and places it in a placeholder within a repeater. It displays correctly, but I am having issues retrieving the answers when the form is submitted.  I get the dreaded "Object reference not set to an instance of an object." error. Here's the code.
 'Create the answers Protected Sub Repeater1_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.RepeaterItemEventArgs) Handles Repeater1.ItemDataBound If e.Item.ItemType = ListItemType.Item OrElse e.Item.ItemType = ListItemType.AlternatingItem Then Dim Go to the complete details ...