hi everybody
i need help for use the public function in vb.net
in my project i am using this sqlconnection in some places
Dim DBConn As New SqlConnection("Server=192.168.1.2;User ID=user;Password=pass;DataBase=TespaMechanical")
but i want declare it in one place and whenever i need i can use this connection
what shall i do
can anyone give a solution
Loading
Kirtan PatelPosted Feb 23, 2010, 6:45 AM
Shared Function Add(ByVal a As Integer, ByVal b As Integer) As IntegerReturn a + b
End Function
paul danielPosted Feb 23, 2010, 8:46 AM
http://www.techtoolblog.com/archives/webconfig-connection-string-settings-in-net-20
Hirendra SisodiyaPosted Feb 23, 2010, 7:02 AM