TextBoxes Validation
How can I validate 2 textboxes so that the data entry number in textbox 1 is always bigger than that in textbox 2 ?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Hemant KumarRank #1,202 · 1.5K reputationPosted Sep 23, 2011, 1:49 AM EDT
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test Page.aspx.cs" Inherits="Test_Page" %>
<%@ Register Src="~/UserControls/TestControl.ascx" TagName="UControl" TagPrefix="UC" %>
Sam HobbsRank #107 · 20.5K reputationPosted Sep 24, 2011, 12:33 PM EDT
So in other words, it might be frustrating for your users if you validate each textbox when the focus leaves either one. Consider validating only when the user is finished with both fields; such as when a "save" or "submit" button is pushed.