My asp.net app doesn't see new records I add to the Access 2000 table. If I open the table from the Server Explorer the new records appear. Any ideas how I can make them visible from my asp.net app. ??
Sorry you're quite right.
Here is the function I use to read the records:
Function Authenticate(ByVal strUserID As String, ByVal strPword As String) As Boolean
Dim objConn As New OleDbConnection(ConfigurationSettings.AppSettings("DSN"))
Dim objCmd As OleDbCommand
Dim objDR As OleDbDataReader
Dim userFound As Boolean
objCmd = New OleDbCommand("Select * From tblUser Where " & _
"tblUser.U_ID = " & CLng(strUserID) & " AND tblUser.U_PassWord = '" & strPword & "'", objConn)
It's for a login page where I check the the ID number and password against records in an Access table. The records I added before connecting the database to the web site via IIS are visible, those that I add now are not even though I can see them using in the Server Explorer.
Ok, there doesn't appear to be anything fundametally wrong with the way you are reading the records, so it may come down to how you are adding them or perhaps something else like page caching.
Can you show us how you add the records to the database (if there isn't too much other non related code in the page, it may be easier if you show the whole page otherwise a shortened version of all add/view functions should suffice)?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.