473,467 Members | 1,342 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Error on Asp.Net page

Hi All,

I create a long form, (user have to Scroll down to Click the submit
button) on the form i have couple fields using the control
"RequiredFieldValidator". Now the user click on the "submit" button,
error will display if the user does not enter the required field (it
works fine), but the user does not see the error unless they scroll up
the form. Is there a way in the asp.net to make the page go up to the
top or to the error field so the user does not have to scroll up or
wonder what going on
Thank You
Regards,
ntuyen01

May 11 '06 #1
2 1220
if you use custom validators, or validators that are processed in a postback
(not the dynamic ones), you can then do a
Server.Transfer("page.aspx#errorNumber"); and it will postback and jump to
the error. It won't be as fluid as the dynamic ones but it'll work.

The other alternative is to put in a validation Summary control where your
submit button is outlining what went wrong and that could point them to the
right field also.

--
KMG Software, Inc.
Thinking Beyond, Above, and Before
http://www.kmgsoftware.com
"nt******@yahoo.com" wrote:
Hi All,

I create a long form, (user have to Scroll down to Click the submit
button) on the form i have couple fields using the control
"RequiredFieldValidator". Now the user click on the "submit" button,
error will display if the user does not enter the required field (it
works fine), but the user does not see the error unless they scroll up
the form. Is there a way in the asp.net to make the page go up to the
top or to the error field so the user does not have to scroll up or
wonder what going on
Thank You
Regards,
ntuyen01

May 11 '06 #2
if you use custom validators, or validators that are processed in a
postback
(not the dynamic ones), you can then do a
Server.Transfer("page.aspx#errorNumber"); and it will postback and jump to
the error. It won't be as fluid as the dynamic ones but it'll work.

You mean on the Postback I need to check each required field to make
sure the user enter or not.
Brandon@KMG wrote: if you use custom validators, or validators that are processed in a postback
(not the dynamic ones), you can then do a
Server.Transfer("page.aspx#errorNumber"); and it will postback and jump to
the error. It won't be as fluid as the dynamic ones but it'll work.

The other alternative is to put in a validation Summary control where your
submit button is outlining what went wrong and that could point them to the
right field also.

--
KMG Software, Inc.
Thinking Beyond, Above, and Before
http://www.kmgsoftware.com
"nt******@yahoo.com" wrote:
Hi All,

I create a long form, (user have to Scroll down to Click the submit
button) on the form i have couple fields using the control
"RequiredFieldValidator". Now the user click on the "submit" button,
error will display if the user does not enter the required field (it
works fine), but the user does not see the error unless they scroll up
the form. Is there a way in the asp.net to make the page go up to the
top or to the error field so the user does not have to scroll up or
wonder what going on
Thank You
Regards,
ntuyen01


May 12 '06 #3

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

Similar topics

7
by: Paul | last post by:
I thought this is more of an IE issue but i've had no joy on that group perhaps somebody here will have a clue. If i click a link to a web page embedded in Excel (97 OR 2000) i get the standard...
9
by: Nick | last post by:
the customError feature is not working. I have it setup as the help says in my web.config file. <customErrors defaultRedirect="DsAppError.aspx" mode="RemoteOnly"/> I tried in a couple...
6
by: John Lau | last post by:
Hi, I am looking at the MS KB Article 306355: HOW TO: Create Custom Error Reporting Pages in ASP.NET by Using Visual C# .NET This article describes how to redirect errors to a custom html...
25
by: moondaddy | last post by:
I have an application where users need to upload images and in my web.config file I have a setting like this: <httpRuntime maxRequestLength="512" /> Which restricts image larger than 500k from...
6
by: ST | last post by:
Hi, I keep getting the parser error, and I have no idea why. I've tried a number of things including: 1)building/rebuilding about 100x 2)making sure all dll's are in the bin folder in the root...
6
by: dee | last post by:
Hi In web.config I have to the following: <configuration> <system.web> <customErrors defaultRedirect="error.htm" mode="On" /> </system.web> </configuration>
2
by: tshad | last post by:
This has been driving me crazy. I have been trying to get the error handling working on my system and can get parts of it working and others won't work at all. I found that you can't access...
7
by: DC | last post by:
Hi, there is a 500;13 page one can configure in the website properties, but ..Net Framework 1.1 also delivers the "server too busy" message sometimes and the IIS custom error page does not seem...
25
by: Blasting Cap | last post by:
I keep getting errors that pop up when I am trying to convert an application from dotnet framework 1.1 to framework 2.0. The old project was saved in sourcesafe from Visual Studio 2003, and I have...
1
by: sean_walsh | last post by:
Hi From classic ASP, I had a custom error handling situation that was quite simple. Errors were all redirected to Error.asp. This page would check 2 settings, EmailErrorMessage and...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
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...
0
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,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...
0
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 ...

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.