Is there a function which I can login with it in ASP.Net 2.0?

Normally I use the Login control to login system, is there a function which I can login with it.
If so , only two arguments (uersname and password) is needed.

I use Membership provider's ValidateUser method (ASPNETDB.MDB), I'm a beginner, could you give me a sample? Thanks!
And more, where can I find source code of Login control? maybe I may analyse it.
[384 byte] By [mycwcgr] at [2007-11-19 12:56:20]