CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

Ben Reichelt's Weblog


Hijacking __doPostBack



Comments

breichelt said:

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.
# March 24, 2005 7:05 AM

Duraid said:

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.
# March 25, 2005 6:04 AM

breichelt said:

I haven't used validators very much, only tried them a few times, does the javascript that they produce run in firefox?
# March 25, 2005 1:41 PM

Duraid said:

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?
# March 26, 2005 9:31 AM

breichelt said:

Geez, sorry, I was just trying to have a discussion, if you are annoyed, just stop reading and commenting.
# March 27, 2005 6:40 AM

OdeToCode Links said:

# March 27, 2005 6:59 PM

Adam Machanic said:

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
# March 27, 2005 10:56 PM

Donny said:

Very nice site!
# September 16, 2005 5:36 AM
Check out Devlicio.us!

Our Sponsors

Free Tech Publications