When the user logs in, this works fine if the password and userid is correct.
But, if on of them are wrong I get:
” There is no row at position 0”
Where is the error?
<%@ Page Language="VB" %>
<%@ import Namespace="System.Web.Security" %>
<%@ import Namespace="System.Data.OleDB" %>
<%@ import Namespace="System.Data" %>
<%@ import Namespace="System.Data.SqlClient" %>
<%@ import Namespace="System.IO" %>
<%@ import Namespace="System.Object" %>
<script runat="server">
public opp as String
Sub Page_Load(obj As Object, e As EventArgs)
lblMessage.text = ""
end sub
Sub Login(obj As Object, e As Eventargs)
If Page.IsValid then
Dim strConn as string = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _
("new_data.mdb") & ";"
Dim C ...
Go to the complete details ...
Found interesting? Add this to: