Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: SQL Connection


Message #1 by "Frank Tichy" <tichy@s...> on Wed, 18 Jul 2001 15:24:49
Hi,



How do I open an SQL connection with ASP.Net in a Visual Basic ASP.Net Web 

Application? I want to have something like a public function or class 

which I can use on every page of my project. It was no real problem to get 

a connection string from the web.config. I can already have my connection 

string (server=localhost;uid=sa;pwd=;database=Northwind) displayed on a 

page from within a private sub, but I don't want to keep on writing the 

same code on every page. Basically, what I want to do is to just use the 

connection string and then write an sql-statement to display or manipulate 

data.



kind regards

Frank

  Return to Index