The code below works fine, but if tht user types in wrong username og password he gets this message: " There is no row at position 0." .......instead of the message "Wrong!" se code below
<%@ 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 Oppdragsgiver 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 strCon ...
Go to the complete details ...