Here is my code:
Quite simply, I want to specify that the text shown is from the SubjectID field, and the Data Value is from the Path field (trimmed).
I get these errors in Visual Studio:
(80): 'DataTextField' is not a member of 'System.Web.UI.WebControls.DataList'.
(81): 'DataValueField' is not a member of 'System.Web.UI.WebControls.DataList'.
This is newly migrated from inline code (<script> block) to codebehind, and I have some other questions, but it didn't quite fit under the other posts I had started.
Code:
78 objReader = objComm.ExecuteReader()
79 subjList.DataSource = objReader
80 subjList.DataTextField = "SubjectID"
81 subjList.DataValueField = Trim("Path")
82 subjList.DataBind()
Quite simply, I want to specify that the text shown is from the SubjectID field, and the Data Value is from the Path field (trimmed).
I get these errors in Visual Studio:
(80): 'DataTextField' is not a member of 'System.Web.UI.WebControls.DataList'.
(81): 'DataValueField' is not a member of 'System.Web.UI.WebControls.DataList'.
This is newly migrated from inline code (<script> block) to codebehind, and I have some other questions, but it didn't quite fit under the other posts I had started.