validation controls refresh screen

Posted on 2006-04-25
Last Modified: 2010-04-06
could it be that adding validation controls to a page make the screen refreshed on every button click?
I have a screen with a textbox, label, button and a customvalidator or requiredvalidator control.
clicking the button displays alert message.
if there is any validation control in the screen then when the message is displayed the screen is refreshed.
If there is no validation control the screen is not refreshed.
Can it be??????????
Question by:ANAT2403
    LVL 5

    Expert Comment

    The refresh maybe coming from once you change a control (in a form) it calls the Forms action method and runs any script needed (in this case the alert message).


    Author Comment

    I am saying that I made a test with validation control and without. and the alert message is javascript and it is not
    suppose to make the refresh. Any other suggestions?
    LVL 9

    Accepted Solution

    Are you using ASP.NET with server side validation controls?
    In this case, your behavior is normal, as the validation is server side - so the foirm will be posted to itself (autopostback) to check the values.

    Author Comment

    Yet I am not using the server side validation controls so the problem stays: Can I use a master page with menu control
    that navigate to content pages without having the refresh? I found that the menu control doesn't make the refresh if it is taget to a frame. so again Is it possible to combine the master page with menu control and content pages and frames?  or do I have to remove the master and content pages and to work with a regular page with an iframe in it and instead of the content pages to have regular pages that will be taget to the iframe?

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Xsl Nested Loop 4 18
    css help 3 79
    Creating a web service in C# to write to local drive (XML file) 3 22
    Problem to run file 9 78
    Article by: Matthew
    I am a very big proponent of technology compliance standards and strive to meet such criteria in all of my work. That includes my site, which is 100% XHTML 1.0 compliant as determined by the World Wide Web Consortium. https://www.matthewstevenkel…
    I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now