Correct me if I am doing wrong.
I have a Login page which uses a Webservice to process login. In my Login page I use Jquery with JSon to consume the webservice.
After the login is processed I recieve an object and I want to redirect the recieved object to home page.
Let me know how.
POST redirect the received JSON to server, and deserialize the JSON to your typed object. You can consider keeping the object in your SESSION and access it when required.
put a hidden field in your aspx/ascx page
Once you receive your JSON Data from your service. Just put your response to the hidden field. (USE JQUERY)
On your Page_Load method on your home.aspx
Now you can consider putting your loginDataObject to SESSION and access through out your application scope
// to store in session Request.Session["loginData"] = loginDataObject; // to retrieve from session LoginData loginDataObject = (LoginData) Request.Session["loginData"];