Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dataset could not be found
Message
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Dataset could not be found
Miscellaneous
Thread ID:
00692085
Message ID:
00692085
Views:
59
I am getting the error "The type or namespace name 'dsStaff' could not be found (are you missing a using directive or an assembly reference?)" The error is from the following reference to dsStaff (which is underlined in blue). Any idea what is causing this or how to fix it?
private void txtName_DataBinding(object sender, System.EventArgs e)
{
	txtName.Text = dsStaff.staff[0].name;
}
The code in the page load that creates the dataset is as follows.
		private void Page_Load(object sender, System.EventArgs e)
		{
			// Put user code to initialize the page here
			// create staff object
			int lnStaffID;
			Staff oStaff = new Staff(); 
			String lcStaffXML;
			DataSet dsStaff = new DataSet();

			lnStaffID = Convert.ToInt32(Request.QueryString.Get("id"));
			lcStaffXML = oStaff.GetRecord(lnStaffID);
			dsStaff.ReadXml(lcStaffXML);
			this.DataBind();
			}
Next
Reply
Map
View

Click here to load this message in the networking platform