hi
i am create three pages. all operations are performed through jquery with API's
1. login page
2. update data page.
3. Registration page.
how to store login data using web method through out pages.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Manoj BhoirPosted May 16, 2015, 12:59 AM
Make a webmethod in C# that update the session value which will be access by
[webmethod]
public static void sesstion_update(session_value)
{
httpcontext.current.session["name"] = session_value;
}
Using $.ajax method of Jquery call this web method and pass your value which you want to store in session through data.
For mroe information about jQuery.ajax Call see this :
http://www.c-sharpcorner.com/UploadFile/0cefc4/introduction-to-jquery-ajax-call-in-Asp-Net/