This is homework assignment that isn't covered in our books and we were instructed to use the internet and/or any other resources to figure out this assignment. The information I'm finding on the web is a little over my head and was hoping for a more laymen explanation!!
I have an existing asp.net web site using c#, without issue I was able to add dynamic data capabilities to my site by creating a dummy site, hooked up to AdventureWorks DB, and adding the appropriate files and assemblies to my existing site.
This is where I am getting lost. I need to use one of the stored procedures in the Adventure Works DB to display data on a page. I am attempting to use the uspGetEmployeeManagers by associating it with a listview on my aspx page. This is pretty much as far as I can get. All the blogs I've read are a little over my head and I've become more confused than when I started.
Can someone please explain to me, as simply as possible, what I need to do to display data using a stored procedure in a dynamic data web site?
Thank you!
Code:
protected void getEmployeeManagers(int employeeID)
{
AdventureWorksLTDataContext aventureWorksDataContext = new AdventureWorksLTDataContext();
var dynamicData = aventureWorksDataContext.uspGetEmployeeManagers(employeeID);
lvwGetEmployeeManager.DataSource = dynamicData;
lvwGetEmployeeManager.DataBind();
}