473,802 Members | 2,026 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

requiredfield indicators

I have a question.

I have two requiredfield indicators in my asp.net page and i have two
buttons like getnextlead and getcustomer.

I want the first requiredfieldin dicator to be on for getnextleadbutt on
but not for getcustomer button and second indicator active for
getcustomer button but not for getnextleadbutt on.
can anyone tell me how to do this?
venky

Nov 19 '05 #1
4 1398
I don't think you can do that. You have to get a custom validator and write
your own client side function to figure this out.

"venky" <ve************ @yahoo.com> wrote in message
news:11******** **************@ z14g2000cwz.goo glegroups.com.. .
I have a question.

I have two requiredfield indicators in my asp.net page and i have two
buttons like getnextlead and getcustomer.

I want the first requiredfieldin dicator to be on for getnextleadbutt on
but not for getcustomer button and second indicator active for
getcustomer button but not for getnextleadbutt on.
can anyone tell me how to do this?
venky

Nov 19 '05 #2
how to use custom validator?
any sample codes?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #3
ASP.NET 2.0 will offer a solution called Validation Groups. It lets you
assign a group name to the submit button and the validators it fires. Since
ASP.NET 2.0 is not ready yet, here are your choices:

1. Use server-side only validation on submit like this:
- Set CausesValidatio n=false
- In the submit button's Click method, call Validate() on each validator
that should be fired. Then test the IsValid property on each validator. If
all are true, save.

2. Use a third party validation system that already has validation groups. I
wrote one: Professional Validation And More
(http://www.peterblum.com/vam/home.aspx). My efforts go far beyond
validation groups because Microsoft's validators have so many limitations
and don't address common requests, like setting the background color of the
field with the error or client-side validation on Mozilla-based browsers.
--- Peter Blum
www.PeterBlum.com
Email: PL****@PeterBlu m.com
Creator of "Profession al Validation And More" at
http://www.peterblum.com/vam/home.aspx

"venky" <ve************ @yahoo.com> wrote in message
news:11******** **************@ z14g2000cwz.goo glegroups.com.. .
I have a question.

I have two requiredfield indicators in my asp.net page and i have two
buttons like getnextlead and getcustomer.

I want the first requiredfieldin dicator to be on for getnextleadbutt on
but not for getcustomer button and second indicator active for
getcustomer button but not for getnextleadbutt on.
can anyone tell me how to do this?
venky

Nov 19 '05 #4


Thank you very much peter, i will look into it

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #5

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

Similar topics

2
347
by: Eric | last post by:
Somehow I turned on display of Tab and Space indicators within the IDE. How do I turn it off?? Thanks
5
2301
by: Erwin | last post by:
At the moment I'm using a report which contains an indicator to show if a Service group of the company isn't working well or is working perfectly. This indicator is a "*" which looks like a traffic light. Example: When a Service groep does hit the target, the indicator will lit up using the following Control Source: =IIf(>0,8*10*;"*") But now, I would like the use a real bitmap, trafficlight bitmaps, to
5
2138
by: James Morton | last post by:
I have a Static DataSet in a class file that I am using globally between a few forms. The main form populates the dataset through a menu option which invokes ReadXML in the class file to populate the DataSet. The ReadXML is a rather lengthy operation with >5mb xml files (I am reading in the schema and ignoreschema on read). This has presented several problems 1) What kind of progress bar can I show during load since I can't increment...
1
1795
by: Stefan | last post by:
I'd like to display the keyboard navigation indicators in my C# application without the user having to press the Alt key and regardless of the machines global setting (Hide keyboard navigation indicators until I use the ALT key)... Is there a way to programatically turn on/off keyboard navigation indicators for my app during runtime... Thanks, STefan
2
2460
by: Sean | last post by:
Hi, I have 2 buttons A and B, textbox C and dropdown list D. When A is clicked, C is required field. When B is clicked, C and D are required fields. There is a dummy entry "please select" in the dropdown list. When B is clicked, D can't be the dummy option. I wonder what is the best practice for this case? I was thinking to use server-side validation for these controls, and created 2 RequiredField Validators and set them TRUE at...
0
7950
by: Bryce Budd | last post by:
Hello All, I've been a taker of information from newsgroups for a long time and thought I'd finally make a contribution back to the community whose supported me when I've needed it. After all before commercialization took over that was the beauty of the Internet! I've create a checkboxlist validator control...something MS should have done originally in my opinion, but nonetheless here it is. It's a C# control, sort of IE specific. ...
4
1196
by: Vi | last post by:
Hi, I have a TextBox control that needs to have a value only if a drop down box on the same page has a certain value selected. Is it possible to achieve this using RequiredFieldValidator for the TextBox and having EnableClientScript = true (without a post)? Thank you
2
1962
by: VB Programmer | last post by:
I am making a VB.NET winform application. Any 3rd party controls you can suggest to graph out financial indicators, such as MACD, stochastics, alligators, moving averages, etc...? This is a FOREX application. Thanks!
0
1108
by: =?Utf-8?B?QWJieQ==?= | last post by:
I have one form on the page but have multiple submit buttons for different elements. When clicking on a button not associated with the required elements the validator popup still comes up. How can I disable requiredfieldvalidator fields when I click on non associated button? NOTE:am doing this in asp.net 1.1
0
9699
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
9562
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10538
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...
1
10285
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,...
1
7598
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
5622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4270
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
2
3792
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2966
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.