I'm using SmartNavigation and need to automatically scroll to the top of the
page when the ValidationSumma ry control catches errors and displays them, so
that the user can see the errors without having to manually scroll to the
top.
How can I determine if the ValidationSumma ry will display errors so that I
can issue a javascript window.scrollTo (0,0) or document.body.s crollTop = 0
(or something more appropriate) to automatically scroll to the top of the
page, thereby circumventing the SmartNavigation feature?
In my .aspx file, I have:
<asp:validation summary id="valValSumma ry" runat="server" headertext="The re
are problems with the following fields:"></asp:validations ummary>
If no validation errors occur (no adjusting of the scroll position is
needed), then the user sees nothing. If validation errors exist, then the
user sees the headertext followed by each validation control's error message
in a bulleted list.
My first thought is to determine - on the server side during a postback - if
valValSummary is set to the headertext; how would this be done?
--
Thank you kindly,
Dan Sikorsky BAB, BScE, MSC 1 2459
i assume you are doing server validation, as client validation already does
this. you will have to emit javascript that detects its in the smartnav
iframe, and scroll its parent window, or better yet, in the smartnav.js
update the __smartNav.rest oreFocus function to do this for you.
-- bruce (sqlwork.com)
"Dan Sikorsky" <ds****@gte.net > wrote in message
news:u2******** *****@TK2MSFTNG P09.phx.gbl...
| I'm using SmartNavigation and need to automatically scroll to the top of
the
| page when the ValidationSumma ry control catches errors and displays them,
so
| that the user can see the errors without having to manually scroll to the
| top.
|
| How can I determine if the ValidationSumma ry will display errors so that I
| can issue a javascript window.scrollTo (0,0) or document.body.s crollTop = 0
| (or something more appropriate) to automatically scroll to the top of the
| page, thereby circumventing the SmartNavigation feature?
|
| In my .aspx file, I have:
|
| <asp:validation summary id="valValSumma ry" runat="server" headertext="The re
| are problems with the following fields:"></asp:validations ummary>
|
| If no validation errors occur (no adjusting of the scroll position is
| needed), then the user sees nothing. If validation errors exist, then the
| user sees the headertext followed by each validation control's error
message
| in a bulleted list.
|
| My first thought is to determine - on the server side during a postback -
if
| valValSummary is set to the headertext; how would this be done?
|
|
| --
| Thank you kindly,
| Dan Sikorsky BAB, BScE, MSC
|
|
|
| This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: newusertodotnet |
last post by:
I'm trying to add a ValidationSummary control to a common base page used by
all of our system's aspx/ascx files. The base page is a regular class file
that inherits from System.Web.UI.Page. When I debug the application and click
the submit button with a data element that fails a validation, I get the
correct ValidationSummary messageBox, but I then receive the following error
in WebUIValidation.js ValidationSummaryOnSubmit():
Microsoft...
|
by: John Mabbott |
last post by:
Hello all,
We're getting some weird behavior with the ValidationSummary control.
If I submit a page that fires some validators, the ValidationSummary
displays them correctly. However, if I subsequently submit the page,
the ValidationSummary control briefly disappears before re-appearing
again! So, to recap:
1. I load one of my pages
2. I don't fill any of the input boxes and submit the page, causing
|
by: SLE |
last post by:
A web user control exposes a RadioButtonList (with AutoPostBack = true)
called "Question". This control also has an embedded RequiredFieldValidator
control.
1. Main ASPX page is populated with several "Questions".
2. Within the code of the main page, there is a SelectedIndexChanged handler
for the RadioButtonList exposed by Question. The function loops through a
number of questions on the pages and hides/shows questions (control.visible...
|
by: Christer |
last post by:
Hi all!
I recently created a MessageBox webcontrol for asp.net. This can be
used as is, but I also want to take ude of it in other webcontrols.
Right now i creating a ValidationSummary control, that makes use of my
messagebox to show the summary of failing validators.
So far I've been successfull achieving this. However, the serverside
nature of the MessageBox currently forces all validators (and the
validationsummary) to have...
|
by: Bobby |
last post by:
Hi all...
I rather confuse using smartnavigation in my web application because if I
set the "smartnavigation = true" then If I run my app, then after I post
page that page, using event dropdownlist1_selectedIndexChanged then the page
would't get the css, and then the IE will generate error confirmation
dialog, then my browser will be closed.
I'm using iframe for my app, 2 frame -> top frame and content frame.
I use smartnavigation for...
| |
by: Nestus |
last post by:
Hi, im developing a solution in ASP.Net, i have a page that i need to use
the smartnavigation in true, the problem occurs when i put in the directive
@Page SmartNavigation = true my page trhows a error in the next line, i
really dont understand why the page trhows that error. Here is the line that
make the error.
Response.Write("<script
language=javascript>window.parent.frames.location='OpcionReporte.a
spx';</script>")
|
by: morrisdn13 |
last post by:
I have encountered a very strange problem that makes it look like the page
is not recreated in entirety after a postback when I turn on
smartnavigation.
If I click on a server control, the page is returned blank. I have a
JavaScript routine displaying a session countdown in the browser statusbar
that continues counting without resetting as it normally would after a
postback. An error icon is displayed in the browser statusbar after the...
|
by: Ken Varn |
last post by:
If a page has multiple ValidationSummary controls, how does it distinguish
which ValidationControls are associated with which ValidationSummary
controls?
The reason I am asking this is that I want to display a Message Box for the
validation message on my Validation controls. My validation control is
embedded within a custom server control. If my custom server control adds a
ValidationSummary control, I am afraid that it may conflict...
|
by: Ashhad Syed |
last post by:
I have turned on smartnavigation=True for some of the forms in my .NET
application. It seemed to be working fine on Windows 2000 SP4, which also has
VS 2003 installted, but when I moved the application to window 2003
production evnironment, the Smartnavigation stopped working.
Any ideas or suggestions would be appreciated.
Thanks,
Ashhad.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |