Using the following code, I get errers elsewhere in the code that makes no sense. When Icomment out what you see below, the project builds fine. What the heck am I missing here?
Imports
Infragistics.Web.UI.ListControls
wddField =
New WebDropDown
wddField.ID = row(strTable &
"FieldID")
wddField.DataSource = objCommon.ReturnListItems(
"LookupList", "tatus")
wddField.TextField =
"ItemName"
wddField.ValueField =
wddField.DataBind()
tbCell =
New HtmlTableCell
tbCell.Controls.Add(wddField)
Ok I'm sorry it's not working. It's compiling which is better. I have this code and it tells me null reference error on the data bind.
wddField = New WebDropDownwddField.ID = row(strTable & "FieldID")wddField.DataSource = objCommon.ReturnListItems("LookupList", row("ListType"))wddField.TextField = "ItemName"wddField.ValueField = "ItemName"wddField.DataBind()tbCell = New HtmlTableCelltbCell.Controls.Add(wddField)
This is working, thank you. I didn't actually change anything but at some point I had redone some references, so maybe that has something to do with it.
Hello Irri, Were you able to get this working? Please let me know if you have questions regarding this.
Thank you,
Swetha
Hello Irri, Import 'Infragistics.Web.UI.ListControls;'. Let me know if you have any questions.
Sincerely,
What do I need to import into the .vb page at the top to be able to reference it as just WebDropDown. Maybe that is my problem.