abdullauthan
Programmer
I declared a connection as Public in a module and it always gives me an error when I pass the connectstring from the login page.
When I declare the connection with Dim within the button_click event, it works fine.
I'm new to ASP.Net and I'm declaring the connection Public because I hope I can use the connection from other pages to open tables.
If there is any other way around, please let me know.
When I declare the connection with Dim within the button_click event, it works fine.
I'm new to ASP.Net and I'm declaring the connection Public because I hope I can use the connection from other pages to open tables.
If there is any other way around, please let me know.