tags:

views:

16

answers:

1

In ajax-pro Can I use custom class as proxy instead of system.web.ui.page? and How?

basically I want to use html file with ajax-pro

thanks for your time.

A: 

Ajax-Pro doesn't work this way, it does it's work via a server-side handler and page methods. Since HTML is static, it can't execute anything on the server, you need some sort of server back-end to support AJAX (unless the rest of the loaded content is also static, in which case you only need a client JavaScript library or hand-roll the JavaScript for AJAX).

If you want static HTML and dynamic AJAX content, I'd look at jQuery and Web Services to accomplish this, but know that there are many solutions out there, not just jQuery.

To answer the question, yes it can, as long as that class inherits from Page at some point...but no, you can't use it with a generic HTML file like you describe.

Nick Craver