Hello,
I read the info about asp and i think i have some catching up to do

This is what i learned :
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="screenlogin.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<script language = vbscript runat=server>
Sub Button1_ServerClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.ServerClick
Dim MyConnection As System.Data.SqlClient.SqlConnection
Dim MyDataAdapter As SqlClient.SqlDataAdapter
Dim MyDataTable As New DataTable()
Dim MyDataRow As DataRow
Dim strSQL As String = "select* FROM tabel1"
Dim gebruiker As String
Dim invoer As String
Dim paswoord As Integer
Dim paswoord1 As Integer
MyConnection = New System.Data.SqlClient.SqlConnection("server=sql13.hostbasket.com; initial catalog=mikeportaelsbe;uid=mikeportaelsbe;pwd=tempus")
MyConnection.Open()
MyDataAdapter = New SqlClient.SqlDataAdapter(strSQL, MyConnection)
MyDataAdapter.Fill(MyDataTable)
message.text= "oke"
' Loop through DataTable
For Each MyDataRow In MyDataTable.Rows
'paswoord = CInt(MyDataRow.Item(2))
gebruiker = Trim(CStr(MyDataRow.Item(0)))
invoer = Trim(Me.Text1.Value)
If gebruiker = invoer Then
paswoord = Trim(CInt(MyDataRow.Item(1)))
paswoord1 = Trim(Me.Text2.Value)
If paswoord = paswoord1 Then
MsgBox("welcome" & gebruiker)
Else
MsgBox("Foute login")
End If
End If
'End If
'and then in need the code to check if the textfiels equals the characters in the database
'textbox1 (username) = .... (search for name)
'if the password entered is correct then a msbox ok
Next
End Sub
</script>
<title>WebForm1</title>
<meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
<meta name="CODE_LANGUAGE" content="Visual Basic 7.0">
<meta name="vs_defaultClientScript" content="vbscript">
<meta name="vs_targetSchema" content="
</HEAD>
<body MS_POSITIONING="GridLayout">
<form action ="Webform1.aspx" id="Form1" method="post" runat="server">
<INPUT id="Text1" style="Z-INDEX: 101; LEFT: 281px; POSITION: absolute; TOP: 38px" type="text" name="Text1" runat="server">
<INPUT id="Text2" style="Z-INDEX: 102; LEFT: 282px; POSITION: absolute; TOP: 116px" type="text" name="Text2" runat="server">
<INPUT id="Button1" style="Z-INDEX: 103; LEFT: 332px; POSITION: absolute; TOP: 202px" type="button" value="Button" name="Button1" runat="server">
<asp:Button OnClick = "Button1_Serverclick" </asp:Button>
</form>
</body>
</HTML>
But for some reason the button still doesnt react ,
Why??
Thx