473,989 Members | 21,312 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reset errormessage on CustomValidator

Hi

I am using a customvalidator to perform server validation of user input in webform1. When the user input has been validated, webform1 (which has the customvalidator and the user input) opens a new window (by adding a script to the web page that opens a new window by using response.write) , redirects to webform2 in the new window.

If user input is invalid, the error message of the customvalidator is displayed on webform1 and there is no redirection. When the user re-enters input, presses the button and the input is valid, a new window with webform2 is opened. But the errormessage is still present in webform1. How can I make sure that the error message is removed from webform1? I wish to avoid client side scripts, as the validation is rather complicated and is best performed on server side

Thanks
Dorte
Nov 18 '05 #1
1 1797
I have found the solution, so don't spend any time on this
Thanks for looking, anyway

Dorte
Nov 18 '05 #2

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

Similar topics

0
911
by: Philip Korolev | last post by:
Hi All. What I am trying to do is use customValidator to go to a database via a stored procedure and fish out a UserName value. If it finds it, I want it to return 1 and if not I want it to return 0. On the ASP.NET page I have a field called user_username that customValidator is pointing to as a control to validate. The subroutine for the validator and my stored procedure are below. I now have 37 instances of the username = pkorolev and I get...
0
1396
by: Edmilson | last post by:
Hi, I´m using a server function in a CustomValidator control to verify a field date content before an insert process. What should I do to avoid the continuation of the process when the errormessage occurs ? tks ed
2
6056
by: George Ter-Saakov | last post by:
Hi. I am fighting the CustomValidator strange behavior for second day already. I created some test project which is only to reproduce the problem. 1. I created UserControl which has an only a Custom Validator 2. in UserControl::Page_Load i set CustomValidator1.IsValid = false; 3. I insert the User Control into the page and have a submit button there.
0
979
by: Art Kedroski | last post by:
When using a ASP.NET CustomValidator, which runs client- side javascript, and using other ASP.NET validators (i.e. RequiredField, Compare, etc.) the <script language="javascript" src="http://servername/aspnet_client/system_web/1_0_3705_0/ WebUIValidation.js"></script> tag needed for the other .NET validators to work is not rendered. On other pages without the ASP.NET CustomValidator that tag is rendered. This is the only difference we...
1
2695
by: Vi | last post by:
Hi, I have two pairs of a DropDownList and TextBox Controls and for each pair I have a CustomValidator that makes sure that at least one of the two (DropDownList or TextList) has a value. When I submit the form, the OnServerValidate method for the first pair of controls (DropDownList and TextList) fires, but for the second pair does not. It make no sense, both pairs look exactly the same to me. The only difference is that the second...
1
1395
by: Robert Scheer | last post by:
Hi. I created a new class where I defined some shared methods. One of these methods (called IsInvalidKey) is a generic function that I wants to use with several customvalidator controls. In my .aspx page I defined an imports for my shared class: <%@ Import namespace="Webfinder.Helper" %> And for my customvalidator control I have:
3
1734
by: jmclej | last post by:
Here is what I have : <asp:templatecolumn HeaderText="HrBegin"> <itemtemplate> <asp:Label id="lblHrBegin" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "HrBegin") %>' Width="100%"> </asp:label> </itemtemplate> <footertemplate> <asp:textbox id="tbHrBeginInsert" runat="server"
3
2895
by: Stan SR | last post by:
Hi, I have a web user control that contains 3 dropdownlists it's a date selector, so one contains the days, one the months and the last the years. Each of them starts with a blank value. I want to control if the date is valid or blank (that means all the dropdownlist have a blank value).
53
3077
by: Sanders Kaufman | last post by:
I'm having a BLAST writing this app as OOP as PHP allows. It's one thing to discuss the dance, but it's a thing of beauty to see the performance. I'm noticing that the constructor is a "reset" switch - just like the one on the front of my computer. Calling it seems to just dump all of the old values, free up all of the old resources, and return the object to a pristine state. However, I'm a *little* concerned about just using the...
0
10405
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, 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...
0
11920
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
11490
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...
1
11711
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,...
0
10154
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...
1
8545
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7694
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();...
2
4823
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3836
bsmnconsultancy
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...

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.