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

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 requiredfieldindicator to be on for getnextleadbutton
but not for getcustomer button and second indicator active for
getcustomer button but not for getnextleadbutton.
can anyone tell me how to do this?
venky

Nov 19 '05 #1
4 1369
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.googlegr oups.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 requiredfieldindicator to be on for getnextleadbutton
but not for getcustomer button and second indicator active for
getcustomer button but not for getnextleadbutton.
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 CausesValidation=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****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

"venky" <ve************@yahoo.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.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 requiredfieldindicator to be on for getnextleadbutton
but not for getcustomer button and second indicator active for
getcustomer button but not for getnextleadbutton.
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
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
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...
5
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...
1
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...
2
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...
0
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...
4
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...
2
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...
0
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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.