Ok i have this at the top of my page :
private SqlConnection sqlConn = new SqlConnection();
and i have a createDBConnection function, that gets called a lot.
How do i write this line :
If sqlConn Is Nothing Then
'create connection
end if
but in C#??? How do i check if sqlConn is set to anything yet??
HELP!!
Axum
private SqlConnection sqlConn = new SqlConnection();
and i have a createDBConnection function, that gets called a lot.
How do i write this line :
If sqlConn Is Nothing Then
'create connection
end if
but in C#??? How do i check if sqlConn is set to anything yet??
HELP!!
Axum