Hello,
I am using Visual web developer 2008.
I am using AccessDataSource and i connected access database with that.
Now on my login page, i am having 2 text boxes (UserName and Password) and a login button.
So when i click login button, those 2 fields must be checked with database and if the information is correct it must login.
Thankyou

>So when i click login button, those 2 fields must be checked with database.

Use SQL Select statement with where clause.

>and if the information is correct it must login.

You have to use Cookies or Session. Read ASP.NET State Management.

ya thanks I used this code.
select * from login where UserName = ' " & txtusername.text & " ' and password = ' " & txtpassword.text & " '
Thankyou