Creating a back link

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Lloyd Dupont (ld_at_NewsAccount.galador.net)
Date: 10/14/04


Date: Thu, 14 Oct 2004 21:50:28 +1000

On some page (the login page) I want to create a Back link.
I have written the attached code, very simple, I take the url referer if the
page is not postback.

however it doesn't work well :(
I have some login control and when I use them my back control lost its back
url and it reinitialized it to the current URL!!!

I have put some break point in OnInit(), it's weird, when I use my asp:login
and lick log, OnInit() of my back url get called twice :S ?? the first time
the page IsPostback is true and the BackUrl is not empty, the second time it
false & null....

why is that??
how could I implement this Back control! (which doesn't lost the back url,
even if there is some form on the current page) ??

begin 666 Back.cs
M=7-I;F<@4WES=&5M.PT*=7-I;F<@4WES=&5M+D-O;7!O;F5N=$UO9&5L.PT*
M=7-I;F<@4WES=&5M+D-O;&QE8W1I;VYS.PT*=7-I;F<@4WES=&5M+D1R87=I
M;F<N1&5S:6=N.PT*=7-I;F<@4WES=&5M+E-E8W5R:71Y+E!E<FUI<W-I;VYS
M.PT*=7-I;F<@4WES=&5M+E=E8CL-"G5S:6YG(%-Y<W1E;2Y796(N54D[#0IU
M<VEN9R!3>7-T96TN5V5B+E5)+E=E8D-O;G1R;VQS.PT*#0IN86UE<W!A8V4@
M0V]N=')O;',-"GL-"B @(" O+R\@/'-U;6UA<GD^#0H@(" @+R\O(%-U;6UA
M<GD@9&5S8W)I<'1I;VX@9F]R($)A8VL-"B @(" O+R\@/"]S=6UM87)Y/@T*
M(" @('!U8FQI8R!C;&%S<R!"86-K(#H@5V5B0V]N=')O; T*(" @('L-"B @
M(" @(" @<'5B;&EC($)A8VLH*0T*(" @(" @("![#0H@(" @(" @('T-"@T*
M(" @(" @("!P<F]T96-T960@;W9E<G)I9&4@=F]I9"!/;DEN:70H179E;G1!
M<F=S(&4I#0H@(" @(" @('L-"B @(" @(" @(" @(&EF("@O*B%086=E+DES
M4&]S=$)A8VLJ+R!"86-K57)L(#T](&YU;&P@?'P@0F%C:U5R;" ]/2 B(BD-
M"B @(" @(" @(" @('L-"B @(" @(" @(" @(" @("!5<FD@=7)I(#T@0V]N
M=&5X="Y297%U97-T+E5R;%)E9F5R<F5R.PT*(" @(" @(" @(" @(" @(&EF
M("AU<FD@(3T@;G5L;" F)B!U<FDN27-,;V]P8F%C:RD-"B @(" @(" @(" @
M(" @(" @(" @0F%C:U5R;" ]('5R:2Y!8G-O;'5T955R:3L-"B @(" @(" @
M(" @(" @("!E;'-E#0H@(" @(" @(" @(" @(" @(" @($)A8VM5<FP@/2!N
M=6QL.PT*(" @(" @(" @(" @?0T*(" @(" @("!]#0H-"B @(" @(" @<'5B
M;&EC('-T<FEN9R!"86-K57)L#0H@(" @(" @('L-"B @(" @(" @(" @(&=E
M="![(')E='5R;B H<W1R:6YG*59I97=3=&%T95LB=7)L(ET[('T-"B @(" @
M(" @(" @('-E="![(%9I97=3=&%T95LB=7)L(ET@/2!V86QU93L@?0T*(" @
M(" @("!]#0H-"B @(" @(" @<')O=&5C=&5D(&]V97)R:61E('9O:60@4F5N
M9&5R*$AT;6Q497AT5W)I=&5R('=R:71E<BD-"B @(" @(" @>PT*(" @(" @
M(" @(" @<W1R:6YG('5R;" ]($)A8VM5<FP[#0H@(" @(" @(" @("!I9B H
M=7)L("$](&YU;&P@)B8@=7)L("$]("(B*0T*(" @(" @(" @(" @>PT*(" @
M(" @(" @(" @(" @('=R:71E<BY7<FET92@B/&$@:')E9CTG(BD[#0H@(" @
M(" @(" @(" @(" @=W)I=&5R+E=R:71E*'5R;"D[#0H@(" @(" @(" @(" @
M(" @=W)I=&5R+E=R:71E*"(G/D)A8VL\+V$^(BD[#0H@(" @(" @(" @("!]
5#0H@(" @(" @('T-"B @("!]#0I]
`
end



Relevant Pages

  • RE: Macro to VBA
    ... Database Administrator ... Dim Ret as Long 'Return Value ... Static iLogAttempts as Integer 'Number of Login Attempts ... 'Save the logged user to somwhere, in this case to a control on form Home ...
    (microsoft.public.access.modulesdaovba)
  • Re: Forms Authentication without Login Page
    ... OK thanks Brad. ... pressing a login button. ... invokes methods on the control to do the login. ... > Request.IsAuthenticated will be true for the entire request context. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Website Administrator writes two instances of each user into the database
    ... After installing Visual Studio and SQL Express RTM my ... the login link was selected on the homepage. ... So this all made me suspicious and I went into the database and observed ... It was interesting to note the login control would then load ...
    (microsoft.public.vsnet.ide)
  • Website Administrator writes two instances of each user into the database
    ... After installing Visual Studio and SQL Express RTM my ... the login link was selected on the homepage. ... So this all made me suspicious and I went into the database and observed ... It was interesting to note the login control would then load ...
    (microsoft.public.dotnet.general)
  • Re: Forms Authentication without Login Page
    ... Thanks Brad! ... the authentication seems to be delayed by one page view: ... hit Login in my login control. ... and my login control calls ...
    (microsoft.public.dotnet.framework.aspnet.security)