Ben Reichelt's Weblog

Sponsors

The Lounge

Advertisement

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
Hijacking __doPostBack

[Advertisement]

Comments

Duraid wrote re: Hijacking __doPostBack
on Thu, Mar 24 2005 5:12 AM
i just use a customvalidator.
Ben Reichelt wrote re: Hijacking __doPostBack
on Thu, Mar 24 2005 7:05 AM
Its not necessarily always validation logic that I want to insert, sometimes its opening or closing a window, or refereshing a window, or making an asychronous request.
Duraid wrote re: Hijacking __doPostBack
on Fri, Mar 25 2005 6:04 AM
just because it's called a validator it doesn't necessarily have to do validation. you can call your method and do the "asynchronous" call you want to do.
Ben Reichelt wrote re: Hijacking __doPostBack
on Fri, Mar 25 2005 1:41 PM
I haven't used validators very much, only tried them a few times, does the javascript that they produce run in firefox?
Duraid wrote re: Hijacking __doPostBack
on Sat, Mar 26 2005 9:31 AM
I don't know. You're the one how needs to "hijack" the page to do "asynchronous" calls not me.

BTW, does talking like this pay more?
Ben Reichelt wrote re: Hijacking __doPostBack
on Sun, Mar 27 2005 6:40 AM
Geez, sorry, I was just trying to have a discussion, if you are annoyed, just stop reading and commenting.
OdeToCode Links wrote OdeToCode Links For March 27
on Sun, Mar 27 2005 6:59 PM
Adam Machanic wrote re: Hijacking __doPostBack
on Sun, Mar 27 2005 10:56 PM
Have you played with Remote Scripting techniques at all? It might be a bit cleaner to do what you're talking about than posting back (as seems to be the preferred ASP.NET way of doing things). Remote Scripting allows you to create very tight, interactive, UIs (think GMail; no postbacks, no page refreshes -- responsiveness feels almost like a thick client).

Here are a few links of interest:

http://www.thycotic.com/dotnet_remotescripting.html

http://www.codeproject.com/aspnet/AlvaroRemoteScripting.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnclinic/html/scripting11122001.asp
Donny wrote good site
on Fri, Sep 16 2005 5:36 AM
Very nice site!