Brand New User Numpty Question
Hi I'm brand new to ASP programming but have been programming in traditional character based languages like BASIC, COBOL & various 4GLs for nearly 30 years in various commercial environments on proprietory Mainframes & UNIX based systems and am struggling a bit to convert to ASP.
I've worked my way through Beginning ASP.NET & am now looking at Professional ASP.NET. I am using C#.
My problem for today is as follows:
Using ADO Professional ASP.NET shows a class for selecting data. Listing 8.1 for those with the book.
public class SelectingData
{
public List<string> GetCompanyData()
{
//Code here links to North Wind Database and queries CompanyName from Customer table and eventually returns a string containing all the names.
}
}
What I want to know is how would I call such a class from a button click and return the data into a Text Box or some other form of display like a grid view.
|