.NET Ajax Extensions + Login Control

Hi,

I put a Login control into an UpdatePanel to prevent the whole page refresh
when logging in. (The login control appears in every page of the site in the
corner).

When the user doesn't provide valid credentials, only the UpdatePanel
refreshes and the thing is working.

But when the user is valid, the Login control seems to refresh the entire
page, bypassign the UpdatePanel. (I don't have the DestinationPageURL filled
in.)

Is there a way to prevent this ?

Thanks

Mike
Mike Gleason jr Coutu[1] [ Fr, 04 April 2008 16:56 ] [ ID #1935409 ]

RE: .NET Ajax Extensions + Login Control

you cannot use ajax for login. an ajax call can not set the login cookie, of
if cookieless change the url.

if using a cookie for login, using javascript and a hidden iframe, you can
get a login that does not refresh the page.

-- bruce (sqlwork.com)


"Mike Gleason jr Couturier" wrote:

> Hi,
>
> I put a Login control into an UpdatePanel to prevent the whole page refresh
> when logging in. (The login control appears in every page of the site in the
> corner).
>
> When the user doesn't provide valid credentials, only the UpdatePanel
> refreshes and the thing is working.
>
> But when the user is valid, the Login control seems to refresh the entire
> page, bypassign the UpdatePanel. (I don't have the DestinationPageURL filled
> in.)
>
> Is there a way to prevent this ?
>
> Thanks
>
> Mike
>
>
>
>
brucebarker [ Fr, 04 April 2008 17:13 ] [ ID #1935411 ]

Re: .NET Ajax Extensions + Login Control

Those controls are not really compatible with the update panel, but Andrew
Frederick has a client side login method:
http://tinyurl.com/5rwdtm

Laurent Kempe also set up a login in a modal popup (not sure whether it
refreshes or not):
http://tinyurl.com/58l4tt

There is also an AJAX login system (open source) on Google code. You can
read about it here:
http://tinyurl.com/6cggvf

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************
| Think outside the box!
|
*************************************************
"Mike Gleason jr Couturier" <nospam [at] invalidhost.com> wrote in message
news:%23ZpYOQmlIHA.2268 [at] TK2MSFTNGP02.phx.gbl...
> Hi,
>
> I put a Login control into an UpdatePanel to prevent the whole page
> refresh when logging in. (The login control appears in every page of the
> site in the corner).
>
> When the user doesn't provide valid credentials, only the UpdatePanel
> refreshes and the thing is working.
>
> But when the user is valid, the Login control seems to refresh the entire
> page, bypassign the UpdatePanel. (I don't have the DestinationPageURL
> filled in.)
>
> Is there a way to prevent this ?
>
> Thanks
>
> Mike
>
>
>
NoSpamMgbworld [ Fr, 04 April 2008 17:54 ] [ ID #1935415 ]
Microsoft » microsoft.public.dotnet.framework.aspnet » .NET Ajax Extensions + Login Control

Vorheriges Thema: SS Aluminium Bangle KB3100 Supply
Nächstes Thema: Using the cryptography enterprise library application block