I'm just finishing up Chapter 12 of the Begining ASP.Net 1.1 with
VB 2003. The chapter has us take the code out of default.aspx file and put it in a default.aspx.
vb class file.
Not a problem except that my ConfigurationSetting
Dim connectionString As String = ConfigurationSettings.AppSettings("ConnectionStrin g")
to the database via the web.config file no longer works. (The actual database connection string is defined in the web.config file.)
I get an error message that ConfigurationSettings is not defined. All worked great until I moved the functions to the .
vb file.
Question: How can I continue to use the web.config file application settings when moving the code to a class file. (Authors don't cover it in the book.)
Cheers,
Nick