Re: Default page code
- From: "Steve C. Orr [MVP, MCSD]" <Steve@xxxxxxx>
- Date: Wed, 7 Dec 2005 09:54:56 -0800
Don't get discouraged. It's not very hard.
It's mostly just setting a few config values and the rest is mostly
automatic.
One of the links was broken, here's the working one:
http://www.dotnetbips.com/Articles/displayarticle.aspx?id=9
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"John" <John@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:%23D39Upp%23FHA.2176@xxxxxxxxxxxxxxxxxxxxxxx
> It all looks quite complicated. I guess my needs are much simpler for the
> form authentication method that I am using. I am using the following code
> in Page_Load in of Default.aspx.
>
> Protected Sub Page_Load(ByVal sender As Object, ByVal e As
> System.EventArgs) Handles Me.Load
> If not User.Identity.IsAuthenticated Then
> ' Call login.aspx, how?
> End If
> End Sub
>
> I just need to know if the current user in not authenticated how should I
> call the login page? Am I on the right lines?
>
> Thanks
>
> Regards
>
> "Steve C. Orr [MVP, MCSD]" <Steve@xxxxxxx> wrote in message
> news:%23y1Ugri%23FHA.272@xxxxxxxxxxxxxxxxxxxxxxx
>> Forms Authentication is usually your best bet in ASP.NET.
>> It is easily configured in your web.config file.
>> Here's more information:
>> http://www.dotnetbips.com/displayarticle.aspx?id=9
>> http://support.microsoft.com/default.aspx?scid=kb;en-us;311495
>> http://www.4guysfromrolla.com/webtech/121901-1.2.shtml
>>
>> --
>> I hope this helps,
>> Steve C. Orr, MCSD, MVP
>> http://SteveOrr.net
>>
>>
>> "John" <John@xxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:OJoHXuh%23FHA.2464@xxxxxxxxxxxxxxxxxxxxxxx
>>> Hi
>>>
>>> What code I need on the default page to call login page if the current
>>> user is not authenticated/loggedin and carry on if the user is
>>> authenticated/loggedin?
>>>
>>> Thanks
>>>
>>> Regards
>>>
>>>
>>
>>
>
>
.
- References:
- Default page code
- From: John
- Re: Default page code
- From: Steve C. Orr [MVP, MCSD]
- Re: Default page code
- From: John
- Default page code
- Prev by Date: Re: VB vs C# vs C++ vs J#
- Next by Date: Problem with collection property in custom server control
- Previous by thread: Re: Default page code
- Next by thread: How NOT to cahce downloads
- Index(es):
Relevant Pages
|