The ajaxpage function performs a GET request with no headers. Aside from any syntax errors you may or may not have in the code - you haven't shown the exact code that gives that error, you might need to be sending a POST or other type of request which requires a header.
I'm not real familiar with asp, I use PHP and am not expert at it either. But what I would do is make up a separate asp page that, if viewed in the browser, would show the content that you want to have appear in the target div and/or do anything else server side you want done. Use ajaxpage to fetch that page. That separate page cannot have any client side javascript on it though.
Like in PHP, I would put:
PHP Code:
<?php echo 'Hello World'; ?>
or whatever, even much more complex PHP code like to write to/read from a file or database, on a separate page, say call it - hello.php, then use ajaxpage to fetch that:
Code:
ajaxpage('hello.php', 'content');
Bookmarks