I'm facing a problem where my AJAX function needs to send a value from page 1 and in page 2 where the function catches and store it.

Here's my page one AJAX function :

top.location.href = 'http://www.something.com/redirect.php?email=' + $('#email').val();


So the value of the email is "$('email').val();

Here in my second page, I'm using this AJAX function :

$(document).ready(function(){
$("#iframe").load(function(event){
var email = $('#email').val();
$('#frame1').contents().find('#iddatabase').val(email);
$('#frame1').contents().find('#fgr').submit();
redirect();
});


The problem is the AJAX value in the second page is missing and i need help on fixing it.


Question: Access control Service and Azure Websites Could not load System.IdentityModel.Services
Answer: I think this is a known issue in Azure, you'll need to use a start-up script that runs gacutil.exe to register the IdentityModel.dll.

Follow the steps here: http://blogs.infosupport.com/adding-assemblies-to-the-gac-in-windows-azure/

Edit:
My bad, I thought you were talking about a Web Role. As astaykov said, you can't have start-up tasks in Web Sites. Well maybe this'll help somebody else out :-)