I am getting the following error while i submit a form after i added a dropdown box in my designer
System.NullReferenceException: Object reference not set to an instance of an object. at WebApplication1._Default.collectEmailBodyText() in C:\v1.5_production_05June09\Default.aspx.vb:line 219
Below is the extra two lines that i added in collectEmailBodyText()
tempPanelDropDownBox = DirectCast(form1.FindControl(("txt_" & panelUsed & "_ddinput") + counter.ToString()), DropDownList)
tempCollector = tempCollector + ": " + tempPanelDropDownBox.SelectedItem.Text