creating username and password
hi am new to asp.net n trying to build a website..
i want to make a login form and it should check the correct username and password...
but nt getting how to do it..
here is the code that i have tried for it...
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
Response.Buffer = True
Response.Expires = -1000
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
If Request.Form("submit") = "submit" Then
If Request.Form("username") = "administrator" And Request.Form("password") = "password" Then
Session("blnloggedin") = True
Response.Write("<div align='center'>You are not logged in.</div><br>")
Dim str As String
str = "The username and password entered by you doesnot match"
also the name of my textboxes is textbox1 and textbox2 for username and password respectively...
and the button name is button1..
hope anyone can help me...
thnx in advance