Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8706297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:34:51+00:00 2026-06-13T03:34:51+00:00

I am created one customvalidator for checking the min salary and max salary. What

  • 0

I am created one customvalidator for checking the min salary and max salary. What I did means I get minsalary value in one textbox and maxsalary in one textbax. if the maxsalary is less than minsalary means it’ll display some error message.

Some of the Testcase
min-40 max-65 -Noerror
min-40 max-400-Error

Actually what It doing means it compare the min salary first digit with maxsalary first digit and second digit likewise it checking.if it’s less than means it’ll automatically displayed the error message. Can any one please help me how to solve this problem

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T03:34:52+00:00Added an answer on June 13, 2026 at 3:34 am

    Wouldn’t it be easier to use a CompareValidator instead of a customvalidator ?
    Like so:

    <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="txtMaxSal" Operator="LessThan" ControlToCompare="txtMinSal" Type="Integer" Text="*" ErrorMessage="Error Text here"></asp:CompareValidator>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created one ComboFieldEditor in my code and I want to get the value
hi I created one simple xml based spinner application.i got all value in my
I have created one function to return int value for device type as follows
I created one linear layout and I have added two relative layout. I wish
I created one app for database which contains a student table and 3 fields
I created one accordion menu, issue is I am using .next on li but
I created one GWT webapplication project.Inthat i want to create servlet program,but in that
I created one application to read all the contacts stored in android 2.0 emulator.I
I created one application, its working fine. I want to support my application in
i created one grid view application, it's working fine now showing all images in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.