Databases in aspx web pages using C#
Posted on 2003-03-16
As regards web development, can someone please post some code (in C#) to open a connection to a database and print out the contents of it (assuming a database of any name with any contents - the SQL involved is not the concern).
I am learning asp.net with the language used being C# and can only find examples doing the above using VB as the language on the Internet.
I think the code will probably have to go in the Page_Load method, but correct me if I am wrong.
Cheers in advance.