473,395 Members | 1,464 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,395 software developers and data experts.

Long form issue

VK
Hello:

We have a very long form in .Net - issue comes in when a user wants to
submit the form, and due some of error checking we perform, like
required fields left blank the form is not submitted but at the same
time the form doesn't jump to the location where the field is blank
requesting users to fill in, it just stays at the bottom near submit
button instead of jumping to that location.

Unless the user scrolls up the form and sees the error message, he
really doesn't know what the issue would be with the form.

Is there a way to solve this without using Javascript?

many thanks.

*** Sent via Developersdex http://www.developersdex.com ***
Nov 22 '05 #1
6 1249

How about using the HTML anchor tag (<A href="#Fieldn"/>) on each field
label. Then by changing the document.location element in the js you could
jump down to that field label.

Greg H.

"VK" wrote:
Hello:

We have a very long form in .Net - issue comes in when a user wants to
submit the form, and due some of error checking we perform, like
required fields left blank the form is not submitted but at the same
time the form doesn't jump to the location where the field is blank
requesting users to fill in, it just stays at the bottom near submit
button instead of jumping to that location.

Unless the user scrolls up the form and sees the error message, he
really doesn't know what the issue would be with the form.

Is there a way to solve this without using Javascript?

many thanks.

*** Sent via Developersdex http://www.developersdex.com ***

Nov 22 '05 #2
Without JS, not really, But you could add a Validation Summary to your
page, you'll find it in the toolbox in VS with the other validation
objects.

Set the ShowMessageBox properties to True to display a message, and you
will get an alert box appear on the user screen that will tell them
what the failures were based on the values you place in the
ErrorMessage properties for the validation controls on your page.

Hope this helps.

Nov 22 '05 #3
Turn on SmartNavigation

Add this to the page load event

VB code

SmartNavigation = true

Corey
"GHPoe" wrote:

How about using the HTML anchor tag (<A href="#Fieldn"/>) on each field
label. Then by changing the document.location element in the js you could
jump down to that field label.

Greg H.

"VK" wrote:
Hello:

We have a very long form in .Net - issue comes in when a user wants to
submit the form, and due some of error checking we perform, like
required fields left blank the form is not submitted but at the same
time the form doesn't jump to the location where the field is blank
requesting users to fill in, it just stays at the bottom near submit
button instead of jumping to that location.

Unless the user scrolls up the form and sees the error message, he
really doesn't know what the issue would be with the form.

Is there a way to solve this without using Javascript?

many thanks.

*** Sent via Developersdex http://www.developersdex.com ***

Nov 22 '05 #4
Turn on SmartNavigation in the page load event or in the ASPX file

in VB code ...

SmartNavigation = True

"GHPoe" wrote:

How about using the HTML anchor tag (<A href="#Fieldn"/>) on each field
label. Then by changing the document.location element in the js you could
jump down to that field label.

Greg H.

"VK" wrote:
Hello:

We have a very long form in .Net - issue comes in when a user wants to
submit the form, and due some of error checking we perform, like
required fields left blank the form is not submitted but at the same
time the form doesn't jump to the location where the field is blank
requesting users to fill in, it just stays at the bottom near submit
button instead of jumping to that location.

Unless the user scrolls up the form and sees the error message, he
really doesn't know what the issue would be with the form.

Is there a way to solve this without using Javascript?

many thanks.

*** Sent via Developersdex http://www.developersdex.com ***

Nov 22 '05 #5
Be careful when using SmartNavigation as it is very suspectible to causing
unpredictable Jscript failures when not running on localhost, even using IE6.
"CoreyMas" wrote:
Turn on SmartNavigation in the page load event or in the ASPX file

in VB code ...

SmartNavigation = True

"GHPoe" wrote:

How about using the HTML anchor tag (<A href="#Fieldn"/>) on each field
label. Then by changing the document.location element in the js you could
jump down to that field label.

Greg H.

"VK" wrote:
Hello:

We have a very long form in .Net - issue comes in when a user wants to
submit the form, and due some of error checking we perform, like
required fields left blank the form is not submitted but at the same
time the form doesn't jump to the location where the field is blank
requesting users to fill in, it just stays at the bottom near submit
button instead of jumping to that location.

Unless the user scrolls up the form and sees the error message, he
really doesn't know what the issue would be with the form.

Is there a way to solve this without using Javascript?

many thanks.

*** Sent via Developersdex http://www.developersdex.com ***

Nov 22 '05 #6
VK
Where would I find "SmartNavigation"? A VS.NET or IE setting?

Thanks for your time.

*** Sent via Developersdex http://www.developersdex.com ***
Nov 22 '05 #7

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

Similar topics

5
by: VK | last post by:
Hello: We have a very long form in .Net - issue comes in when a user wants to submit the form, and due some of error checking we perform, like required fields left blank the form is not...
2
by: Michelle | last post by:
Hi all I have used knowledge base article 112747 to improve my subforms performance. I am using Access 97. I have a main form where i put an extra textbox which concatenated TeamID WeekNum...
4
by: Amarantine | last post by:
I have a from and a subform and I need to stay on the same record when I move from the main form to the subform. I have a "next" button with a macro on the last page of the form which navigates to...
0
by: amollokhande1 | last post by:
Hi All, Currently we are facing an issue while decoding the Base64Encoded unicode data. Here is the scenario We have one custom javascript function that encodes the unicode data using Base64...
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
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.