473,471 Members | 1,737 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 1251

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: 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,...
1
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...
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: 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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
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 ...
0
muto222
php
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.