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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:41:14+00:00 2026-05-17T20:41:14+00:00

How should you place one validator on a masterpage that wont allow postback of

  • 0

How should you place one validator on a masterpage that wont allow postback of any content pages until all changed control data on that page has been either saved or canceled.

The specifics of my current situation and the way its currently being done on my project are listed below

This is an IE web application. The application is currently uses CSS behaviors to set HTML Components on certain control types which add properties to the control. These properties are set with the data contained by the control by javascript after the page has been served up to the client. The master page has a validator that uses javascript to compare the data in these new properties with the current values of the controls to see if data has been changed. This is destroying the performance of the app and needs to be changed. The CSS HTML component stuff really drags and is not even compatible with many browsers. Two possibilities im considering pursuing are 1.) add the attributes to the controls serverside on init of the basepage, or around there, and then continuing using the current javascript to set them. or 2.) using the same javascript that sets the properties to add them as well.

If someone has encountered this issue before or has any better ideas on how i should handle a situation like this please let me know.

Thanks

  • 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-17T20:41:14+00:00Added an answer on May 17, 2026 at 8:41 pm

    I did solved one of such problem before. The problem is to warn the user to save any changes on the form elements change. I used jQuery (although can be done using regular java script)
    This is the global function which keeps on monitoring all the inputs and selects and set a dirtyFlag to true on change. ( you may need to add same for other controls too)

    $(function() {
            $('input').livequery('change', markDirtyFlag);
            $('select').livequery('change', markDirtyFlag);
    });
    

    When user navigates away from the page or when other ajax calls are done you can check the dirty flag and warn the user. (ajax calls can be trapped using jQuery global callbacks and window unload events).

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

Sidebar

Related Questions

Criteria, don't want creating copies of objects all over the place. Should be fast,
Should you place the @Transactional in the DAO classes and/or their methods or is
This code should i place this code at bottom of body it's in conditional
I'm still quite new to CodeIgniter and I was wondering, where should I place
Should it always come after main css or place doesn't matter? For example: if
Should be simple but I couldn't find the answer, I would like to place
Is there a consensus about the best place to put Python unittests? Should the
I was just curious, why should we use reflection in the first place? //
On various places they said that you should use @ManagedProperty to get a request
Are there any best-practices that state custom code shouldn't be placed in a System

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.