473,856 Members | 1,601 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2590
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.c omwrote in message
news:a6******** *************** ***********@v39 g2000pro.google groups.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
269
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) ? thanx, Neven
1
14412
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 button on my ASP.NET web page, and have an HTML reset button click clear 1) all validator text display and 2) validation summary display. Problem was clearing them and yet still leaving them working and visible if the user immediately began...
0
1265
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 table background has different color than other sections. I want to show the error message inside a section (with different background color) only when an error occurred. This error can be a validation client error (generated by validation controls...
1
1824
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 the validation summary control. I want it to do client side validation so I set every validation control display property to none and set the validation summary control to ShowMessage to true and ShowSummary to false. Als form controls set...
12
2064
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 validation controls to do this? Thanks.
2
5270
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 required" then I edit the date and input an incorrect date, which I have a JavaScript validation for, that message will come up saying how to enter the date. The problem is that the validation summary is now populated and it wont
1
1893
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 contains a radio control which the user must answer to finish the page entry. If user hits submit button without selecting item from control, summary validation error displays. In this case one click is sufficient. Once the user selects choice on...
1
3651
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 HeaderText="No Of Materials" > <Header Caption = "No Of Materials" > <RowLayoutColumnInfo OriginX="2" />
1
2066
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 being accesed. i also tried with validationgroup. Finlly i want each tab content to be validated and the content should accept the inputs.If any errors the message must display in summary separately. Here are 2 of my tabs.Dont feel bore pls let me...
0
9764
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11063
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10699
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9535
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7098
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5762
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5960
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4580
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4176
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.