Hey Omar, I ran in to the same thing the first time I
wanted to move from a classic ASP solution to ASP.NET.
There's some really cool functionality and some decent
examples out there. Here's one I created just to show
some possible configuration settings in the web.config
file:
http://www.simpleasp.net/DesktopDefault.aspx?tabid=42
This example is using Forms based Authentication and URL
based Authorization.
Another good basic example is here:
http://www.15seconds.com/issue/020220.htm
In my simple example, I put the user name and password in
the config file. Not something I'd do in a production
app. You can use your login page to verify the user name
and password against a database like you are doing now in
ASP. Once you do this, you can use the methods exposed by
the FormsAuthentication class to set an authentication
cookie (note that ASP.NET does all the cookie work for
you. You don't have to write any code).
Good luck!
-----Original Message-----
"Khan Imran" <im*******@htmt.soft.net> wrote in message
news:uu**************@TK2MSFTNGP12.phx.gbl... Omar,
What u r doing also can be implemented in .net, But
not many want to do that, What u can do is Check the DB for Login and
password and set up a session just like the classical ASP.
thanks khan, when u say "What u r doing also can be
implemented in .net, Butnot many want to do that" are you referring to doing it
the classical ASPway, checking the db and setting sessions?
thank you,
omar
.