Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4272942
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T07:38:45+00:00 2026-05-21T07:38:45+00:00

what is the usage of jQuery Serialize API in ASP.NET ? how can we

  • 0

what is the usage of jQuery Serialize API in ASP.NET ?
how can we use it ?
Is it possible to convert serialized object to .NET strong type object?
Or map the serialized object to into .NET equivalent object?
for example we have two field in a ‘member’ table.
Name , Age.
so we have these properties in Member Entity ;

    public string Name { get; set; }
public string Age { get; set; }

And we have these codes in our presentation layer :

       <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
        <asp:TextBox ID="txtAge" runat="server"></asp:TextBox>
        <asp:Button ID="btnSave" runat="server" Text="Button" />

When I serializing form using this code :

$.fn.serializeNoViewState = function()
{
    return this.find("input,textarea,select,hidden")
               .not("[type=hidden][name^=__]")
               .serialize();    
}

the Serialized object will be like this :

ctl00%24MainContent%24txtName=Pitter&ctl00%24MainContent%24txtAge=20

so is this string or JSON object? I think its string.
and now what are the benefits of this Serialized output for us?
I know that we are able to pas this output to server using jQuery AJAX. but how can we use it Server Side?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T07:38:46+00:00Added an answer on May 21, 2026 at 7:38 am

    As the documentation explains it the .serialize() method is passed a form DOM element and it converts it into a URL encoded string of key/value pairs that you could pass to the server. But if you want to work with strongly typed objects in ASP.NET you could take a look at Page Methods. For example suppose that you have defined the following type:

    public class Person
    {
        public string Name { get; set; }
        public int Age { get; set; }
    }
    

    you could then have a page method:

    public partial class _Default : Page 
    {
        [WebMethod]
        public static string Process(Person person)
        {
             // TODO: do some processing
             return DateTime.Now.ToString();
        }
    
        ...
    }
    

    and to invoke this method using jQuery and JSON request:

    $.ajax({
        type: 'POST',
        url: 'Default.aspx/Process',
        data: JSON.stringify({
            name: 'foo', // you could fetch those values dynamically
            age: 25
        }),
        contentType: 'application/json; charset=utf-8',
        dataType: 'json',
        success: function(msg) {
            // msg.d will contain the object returned from the server
            // in our example it's a simple string but you could use any
            // complex type you like (well almost any, it must be JSON serializable)
            alert(msg.d);
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a complex ASP.NET page that makes heavy usage of jquery for DOM
In jQuery API doc, the jQuery.proxy function usage: jQuery.proxy( function, context ) function The
is this a valid JQuery usage pattern to : <script type=text/javascript> $(body).prepend('<input type=hidden id=error
There are a few pages here addressing usage of jQuery with .net masterpages -
I'm experiencing an increase of memory usage, when I use the jQuery-eventhandling in Chrome.
I saw the following usage of jQuery selector: $('[value=]', event.target).remove(); I can guess the
I'm new to ASP.NET MVC and jQuery, so I thought I'd share how I
As far as I know, I'm following the correct usage form on: http://api.jquery.com/multiple-attribute-selector/ ,
I am looking for a nice quick live search/filter. Anybody use this? http://rikrikrik.com/jquery/quicksearch/#usage Also
I have one checkbox use jQuery UI <input type=checkbox id=checkbox_1 name=checkbox_1 value=1 /> <label

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.