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!
[color=blue]
>-----Original Message-----
>"Khan Imran" <imran1604@htmt.soft.net> wrote in message
>news:uuyg3uOSDHA.2132@TK2MSFTNGP12.phx.gbl...[color=green]
>> Omar,
>> What u r doing also can be implemented in .net, But[/color][/color]
not many want to do[color=blue][color=green]
>> that, What u can do is Check the DB for Login and[/color][/color]
password and set up a[color=blue][color=green]
>> session just like the classical ASP.[/color]
>
>thanks khan, when u say "What u r doing also can be[/color]
implemented in .net, But[color=blue]
>not many want to do that" are you referring to doing it[/color]
the classical ASP[color=blue]
>way, checking the db and setting sessions?
>
>thank you,
>omar
>
>
>.
>[/color]