all groups > asp.net building controls > march 2004 >
You're in the

asp.net building controls

group:

textbox compare control



textbox compare control Kieran5405
3/26/2004 3:54:16 AM
asp.net building controls:
Hi

A bit of a newbie question

I'm using Visual Studio.Net 2003
I have two textboxes on a webform and a submit button
I'm trying to have it so text can only be in one textbox at any time when the submit button is clicked. In that an error appears if text is in more than one box

I have been messing with the compare validator but can not get it to work

Any help greatly appreciated


---
Re: textbox compare control Teemu Keiski
3/28/2004 11:47:03 AM
Hi,

that would need a customized validator control, either write one using
CustomValidator or develop completely own, standalone validator (deriving
from BaseValidator)

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist

[quoted text, click to view]

Hi,

A bit of a newbie question.

I'm using Visual Studio.Net 2003.
I have two textboxes on a webform and a submit button.
I'm trying to have it so text can only be in one textbox at any time when
the submit button is clicked. In that an error appears if text is in more
than one box.

I have been messing with the compare validator but can not get it to work.


Any help greatly appreciated.


---
Posted using Wimdows.net Newsgroups - http://www.wimdows.net/newsgroups/

AddThis Social Bookmark Button