Re: Default page code



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
>>>
>>>
>>
>>
>
>


.



Relevant Pages

  • Re: SSH to LDAP
    ... Can't seem to get the config file right. ... login I get the following error ... PAM: authentication thread exited unexpectedly ... The PAM config should be basically the same for both (mostly ...
    (comp.security.ssh)
  • Re: Forms authentication doesnt work for downloads
    ... That is aspx,asmx, config and such. ... DOC and other file types with Forms Authentication ... this doesn't work for downloads. ... I expected that people would also be routed to the login ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Default page code
    ... Protected Sub Page_Load ... Regards ... > Forms Authentication is usually your best bet in ASP.NET. ... >> What code I need on the default page to call login page if the current ...
    (microsoft.public.dotnet.framework.aspnet)
  • Form Based Auth.
    ... I have checked the option to use form based authentication but I don't get ... the web page login - still the pop up login box. ... Regards ... Joe. ...
    (microsoft.public.exchange.admin)
  • Re: LDAP integration
    ... it would be handy in regards ... config files. ... install cfengine and work on making cfengine play better with ...
    (freebsd-hackers)