S
Sam
OOP Coding
--------------
Dim con As New
SqlConnection(ConfigurationSettings.AppSettings("ConnectionString"))
Dim cmd As System.Data.SqlClient.SqlCommand = New SqlCommand
Try
cmd.CommandText = "Insert into TBL_CLAIM_SUMMARY Select * from
TBL_MISCELLANEOUS"
cmd.Connection = con
con.Open()
cmd.ExecuteNonQuery()
Finally
con.Close()
End Try
con.Dispose()
con = Nothing
cmd = Nothing
The above coding is require by page1.aspx,page2.aspx and page3.aspx and how
to perform OOP approach?
Currently I write this coding in every aspx whichever I require but it is
too difficult to maintain.
Please advise and please help.
--------------
Dim con As New
SqlConnection(ConfigurationSettings.AppSettings("ConnectionString"))
Dim cmd As System.Data.SqlClient.SqlCommand = New SqlCommand
Try
cmd.CommandText = "Insert into TBL_CLAIM_SUMMARY Select * from
TBL_MISCELLANEOUS"
cmd.Connection = con
con.Open()
cmd.ExecuteNonQuery()
Finally
con.Close()
End Try
con.Dispose()
con = Nothing
cmd = Nothing
The above coding is require by page1.aspx,page2.aspx and page3.aspx and how
to perform OOP approach?
Currently I write this coding in every aspx whichever I require but it is
too difficult to maintain.
Please advise and please help.