How to pass page url as parameter to an AJAX call?

Hi,
i’ need to load a content management system webpage on the front end system using .net, for that i’m storing my page URL’s in sql database,
I’m now reading the page url using javascript and putting it in a variable,
i now need to pass this Variable to my .aspx page using AJAX Call.

How can i pass my own parameters to ajax call and in response i need to print the content from the database in my .html page.

can anyone please help me out how to do this?

Thanks,

You can add it exactly the same way as to normal forms. You can add it to url like ajax.asp?url=whatever or you can send it using POST method.

Some examples with jQuery:
http://docs.jquery.com/Ajax/jQuery.get#urldatacallbacktype
http://docs.jquery.com/Ajax/jQuery.post#urldatacallbacktype
Click on “Example” tab to see some examples. Whatever Ajax framework you are using, code won’t be too different from those jQuery examples.