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 6856815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:56:00+00:00 2026-05-27T01:56:00+00:00

I am working on a page that has a mix of server side controls

  • 0

I am working on a page that has a mix of server side controls and simple html controls rendered using jquery templates. This is a ASP.NET webforms application.

When a server side request is made by clicking on a save button, if validation fails on the server, then the postback causes the values entered in the simple html controls to be lost (since it has no viewstate).

The only solution I can think of is to save the state of the simple html controls into a hidden input control before the server request is made. If validation fails, rehydrate the jquery template from this hidden input. It appears I can use the serialize function in jquery but I need to ignore the server controls from this collection (i think?)

Is there a simpler way other than having to serialize/deserialize information? Will UpdatePanels help?

  • 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-27T01:56:00+00:00Added an answer on May 27, 2026 at 1:56 am

    Frankly, I don’t think UpdatePanels ever help. They will complicate your code-behind (although you may already have lots of if (Page.IsPostback == false) statements in your code) and the requests can be really slow. I find them extremely cumbersome to use, personally.

    Depending on the size and complexity of your page, it might be worth checking into .asmx webservices. I’ve used them extensively myself (for this precise situation, as a matter of fact), and it’s pretty easy to call them if you’re using jQuery already.

    However, as a caveat: I have read a few questions here and articles elsewhere, saying that .asmx-style webservices are going away eventually, and that you should start using WCF to replace this functionality.

    If you post some of your markup and/or C# code (it doesn’t have to be complex at all; just enough so that we’re speaking the same language (terrible joke)), I could provide you with example jQuery AJAX calls and WebService examples.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a page that has both Mootools 1.4 and jQuery 1.5.1 running.
I am working on a web page that has a reference to jquery and
I have a page that I'm working on that has the following HTML markup:
I'm working on a project that has these attributes: jQuery driving the page Unity
Currently I am working on a web page that has six ReportViewer controls that
I am working on a page that has user controls that are arranged in
I'm working on a page that has three divs next to each other, each
I'm working on a page that has some ads on it. One of them
I am currently working on a page that has a date picker for one
I'm working on a PHP dynamic web page that has a <textarea> element that

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.