Pass Object from one Aspx to another from Javascript

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.

Thanks Samuel


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

Use JavaScriptSerializer to deserialize your JSON data

JavaScriptSerializer serializer = new JavaScriptSerializer();

LoginData loginDataObject = serializer.Deserialize<LoginData>(jsonResponse.Value);

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"];

Need Your Help

How can I both stroke and fill with NSAttributedString w/ UILabel

ios cocoa uilabel nsattributedstring

Is it possible to apply both stroke and fill with an NSAttributedString and a UILabel?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.