I'm having errors connecting to databases. However, while I'm using ASP.NET (.aspx), I'm trying to use ADO from original ASP. I'm very sure this is the problem.
What's the proper way to connect to a DB using ASP.NET? (connection String?) -Ovatvvon :-Q
Ovat: From what I've read, if you're using VStudio, the records opened by the connection and dataset classes are closed automatically by the .NET platform (I wd assume this would be in most cases).
Nothing closes itself. You should still clean up after yourself.
We now have "garbage collection" that will clean up after us if we forget, but that will still affect performance of your site if you wait for it to do its thing.
Don't take this the wrong way (you know I don't mind helping), but where is your documentation that came with the .NET SDK? It has full listings of all objects in there. Save yourself alot of time rather than waiting for someone to answer here.
Yes... I made a typical me-mistake and just started typing w/o thinking. There were some glaring mis-statements in there, so I just red-flagged it. Your docs will have a better explanation of stuff, anyway.
If you go to the .NET program group on your start menu, there's an option in there called "documentation" with the little blue dot next to it. That's what I was referring to. Very easy to navigate... use the index to search on objects, and normally what you're going to be after is "all members" under the object heading. Very close to a "devguru" type listing of properties and methods, albeit w/o the great examples.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.