Skip to content

Web methods

veerendra kumar

veerendra kumar

Asked May 15, 2015, 2:43 AM EDT1 answer
Share
LinkedInX
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.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Manoj Bhoir
    0
    Hi,

    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/
    0