G
Guest
Am upgrading SQL server access app from 2003 to 2005. Old code works but I
can see safer methods:
My web.config (ASP.Net 1.1)
<configuration>
<appSettings>
<add key="ConnectString" value="Data Source=Vaio1;Initial Catalog=IMA;User
ID=sa;Password="/>
<add key="ImagePath" value="/IMA/Images/"/>
</appSettings> etc
and vb code to open in page:
Private ConnectString As String =
ConfigurationSettings.AppSettings("ConnectString")
Private invConn As SqlConnection
Private invCom As SqlCommand
Private objDR As SqlClient.SqlDataReader
and in
invConn = New SqlConnection(ConnectString)
invConn.Open()
invCom = New SqlCommand("iUserCheck", invConn)
invCom.CommandType = CommandType.StoredProcedure
I realise I need to encrypt this but want to upgrade this to ASP.net ver 2.
Old code works fine but realise it is out of date.
can see safer methods:
My web.config (ASP.Net 1.1)
<configuration>
<appSettings>
<add key="ConnectString" value="Data Source=Vaio1;Initial Catalog=IMA;User
ID=sa;Password="/>
<add key="ImagePath" value="/IMA/Images/"/>
</appSettings> etc
and vb code to open in page:
Private ConnectString As String =
ConfigurationSettings.AppSettings("ConnectString")
Private invConn As SqlConnection
Private invCom As SqlCommand
Private objDR As SqlClient.SqlDataReader
and in
invConn = New SqlConnection(ConnectString)
invConn.Open()
invCom = New SqlCommand("iUserCheck", invConn)
invCom.CommandType = CommandType.StoredProcedure
I realise I need to encrypt this but want to upgrade this to ASP.net ver 2.
Old code works fine but realise it is out of date.