By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,304 Members | 3,174 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,304 IT Pros & Developers. It's quick & easy.

Shared Connection Class

P: n/a
Hi All,

I'm new to ASP.Net, I have a basic page that connects to and displays data
from an Access DB. I'd like to place the connection in a user class library,
and be able to open the connection, passing variables to my class (Like SQL
Server name, Database name ...etc)

Can anyone point me to a tutorial, or get me started with this?

Thanks!

Simon.

--
-
* Please reply to group for the benefit of all
* Found the answer to your own question? Post it!
* Get a useful reply to one of your posts?...post an answer to another one
* Search first, post later : http://www.google.co.uk/groups
* Want my email address? Ask me in a post...Cos2MuchSpamMakesUFat!
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Run one of the samples from microsoft..

ispy or Duwamish or FMStocks7

You will find them C:\Program Files\Microsoft Visual Studio .NET
2003\Enterprise Samples

has some good and bad code examples in there for most things.
"Simon Harris" <to*********@makesyoufat.com> wrote in message
news:Oi**************@TK2MSFTNGP10.phx.gbl...
Hi All,

I'm new to ASP.Net, I have a basic page that connects to and displays data
from an Access DB. I'd like to place the connection in a user class library, and be able to open the connection, passing variables to my class (Like SQL Server name, Database name ...etc)

Can anyone point me to a tutorial, or get me started with this?

Thanks!

Simon.

--
-
* Please reply to group for the benefit of all
* Found the answer to your own question? Post it!
* Get a useful reply to one of your posts?...post an answer to another one
* Search first, post later : http://www.google.co.uk/groups
* Want my email address? Ask me in a post...Cos2MuchSpamMakesUFat!

Nov 18 '05 #2

P: n/a
"Darren Clark" <dc******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Run one of the samples from microsoft..

ispy or Duwamish or FMStocks7

You will find them C:\Program Files\Microsoft Visual Studio .NET
2003\Enterprise Samples

has some good and bad code examples in there for most things.
"Simon Harris" <to*********@makesyoufat.com> wrote in message
news:Oi**************@TK2MSFTNGP10.phx.gbl...
Hi All,

I'm new to ASP.Net, I have a basic page that connects to and displays data from an Access DB. I'd like to place the connection in a user class

library,
and be able to open the connection, passing variables to my class (Like

SQL
Server name, Database name ...etc)

Can anyone point me to a tutorial, or get me started with this?

Thanks!

Simon.

--
-
* Please reply to group for the benefit of all
* Found the answer to your own question? Post it!
* Get a useful reply to one of your posts?...post an answer to another one * Search first, post later : http://www.google.co.uk/groups
* Want my email address? Ask me in a post...Cos2MuchSpamMakesUFat!



Thanks for your reply Darren, but I cannot seem to locate the samples.

I do not have a folder 'enterprise samples' under c:\program files\etc..., I
thought perhaps I had not installed the samples, so checked using add/remove
programs, and I DO have the .Net framework SDK along with the samples
installed.

Any ideas?
Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.