Beginners ASP.net/C#/SQL Server Query

adiplomamiqtij

New Member
newbie here. Think im having trouble with the fact the code seems to be split into an MVC type framework.I have a set of underlying classes in C# in my DAL(Data Access Layer). I have a EmployerManager class with methods such as getEmployeeID and getEmployeeName and a number of other classes such as Employee.I have a SQL Server 2008 database with a number of tables.I have an ASP.net front end. Could someone explain how I access any values from the SQL Server database such as the employeeID or employeeFirstName or lastName through my ASP.net interface.For arguements sake, if i was to drag a label, a text box and a button and have a user enter in a unique employeeID what code would i need to write in the code behind class and asp.net markup to successfully retrieve the correct employee with the correct employeeID.Im aware this is probably quite simple but cant seem to achieve this task!Help would be appreciated!Thanks guys!
 
Back
Top