473,378 Members | 1,439 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Making Validation Summary visible

I have a web page with an address entry form and some other things on
it. The form has field validators on several of the fields, and a
validation summary at the bottom. Because of the size of the form, on
a typical screen, you need to scroll to see the bottom of the form,
which is where the validation summary is. So when a user presses
submit, and gets a validation error, the screen redisplays, but it
redisplays from the top with (typically) the error messages below the
bottom, and the naive user is going to say "What the heck, why did it
bring me back here again".

I've tried unsuccessfully to have it redisplay with the screen
scrolled up so the bottom portion is in view. I'm sure this can be
done, probably relatively easily. Can someone give me some pointers on
how (aside from moving the validation summary to the top of the
screen!).

Thanks.
Oct 22 '08 #1
1 2561
The position of the form in the browser is partially dictated by you and
partially by the user. I do not have the specifics, but newer browsers allow
a particular position to be saved (where a user has scrolled). This may or
may not be useful. If so, it is a simple setting. I don't have it in front
of me right now and don't remember what it is called. It is a setting in the
browser that you can tell the browser to use from your code. I am also not
sure it will work.

One option is to set up an anchor tag where the validation summary will go
and use JavaScript to scroll to that anchor. A bit more work to "debug" as
you have client and server side to contend with, but it will work.

I would seriously conside the validation summary at the top or move away
from summary and use CSS to change colors of the elements that are
incorrect, with proper tags to create hovers for the mistakes. I think it
makes a much prettier design. if you opt this direction, you can still have
summary at the bottom, but it is not really necessary, as the user can see
everything that is wrong as he goes through the form.

NOTE: The above pattern is a bit of work, unless you create your own custom
validation object to work from.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://feeds.feedburner.com/GregoryBeamer#

or just read it:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think outside the box! |
********************************************
"daveh551" <ge****@gmail.comwrote in message
news:a6**********************************@v39g2000 pro.googlegroups.com...
>I have a web page with an address entry form and some other things on
it. The form has field validators on several of the fields, and a
validation summary at the bottom. Because of the size of the form, on
a typical screen, you need to scroll to see the bottom of the form,
which is where the validation summary is. So when a user presses
submit, and gets a validation error, the screen redisplays, but it
redisplays from the top with (typically) the error messages below the
bottom, and the naive user is going to say "What the heck, why did it
bring me back here again".

I've tried unsuccessfully to have it redisplay with the screen
scrolled up so the bottom portion is in view. I'm sure this can be
done, probably relatively easily. Can someone give me some pointers on
how (aside from moving the validation summary to the top of the
screen!).

Thanks.

Oct 23 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Neven Klofutar | last post by:
Hi, Is it possible to show only ValidationSummary, without showing every single validator control (enable and visible disables validation control, bot it also disbles it in validation summary) ?...
1
by: NancyASAP | last post by:
Thought I'd share this since it took me a long time to get it working. Thanks to a bunch of contributers in Google Groups who shared javascript, etc. The question was: How can I put a reset...
0
by: aeshtry | last post by:
Hello dear friends I have an urgent question. Would you please give me your professional idea? I have an html table containing the ASP.Net validation summary and an ASP.Net label control. The...
1
by: Buddy Ackerman | last post by:
I don't know what the problem is. I have a form with several controls that need to be validated, I put a validation group in every form control, every validatoino control, the submit button and...
12
by: Dabbler | last post by:
I need to insure that at least one of three phone number fields has a value (requiredfield) but I'm not sure of a way to implement this without server side logic. Is there a way to use the...
2
by: nmakhan | last post by:
I have a validation summary that I use soley for my Required Field Validators. That works fine if I do things that way up to a point, if by chance the validation summary says "Date field...
1
by: =?Utf-8?B?QmFyYmFyYSBBbGRlcnRvbg==?= | last post by:
I'm having trouble working with a Summary Validation control. I need to click my submit button twice for the Summary to display when validation errors occur on the page. Background: My page...
1
by: baburk | last post by:
I ultrawebgrid I added validation to a cell. The error message displayed in the cell itself. But I want the error message to be displayed in the validation summary. <igtbl:TemplatedColumn...
1
by: raam | last post by:
Hi, I have ajax tab container with 6 tabs in it. I need to validate each tab contents separately and the validtaion summary must be separate for each tab. i cannot do that only one summary is...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.