Thanks for your reply.

The data entered will no larger than 7 numbers with 4 always to the
right of the decimal.
A valid Latitude value is -90 to 90

A valid Longitude value is -180 to 180

the minutes and seconds must be no larger than 59.


A few more examples

45.0003 -> 45°0'3"
-145.3453 -> -145°34'53"
123.7592" -> 124°16'32" - this example rounds to get rid of invalid
minutes/seconds
87 -> 87°0'0"
-23.59 -> 23°59'0" (this number will be saved to database as -23.5900

Besides the validation I am trying to figure out how the text will get
formated.
My thoughts are that I would have to create some kind of "on leave"
logic for the textbox.
Is there a way to mask the input of the textbox in asp.net?



On Dec 16, 11:03 am, Cerebrus <[email protected]> wrote:
> You should be able to do it easily using RegexValidators or
> CustomValidators. Or write your own textbox controls that encapsulate
> the behaviour required.
>
> If you need help with the Regex, please provide more details/examples
> on the type of data that is valid and invalid.
>
> On Dec 16, 8:23 pm, rhaazy <[email protected]> wrote:
>
>
>
> > Forgot to add that this is asp.net
> > Data input will be like 123.4523 -> 123°45'23"
>
> > On Dec 16, 9:54 am, rhaazy <[email protected]> wrote:
>
> > > I have to add a couple of controls to my form for input of
> > > geographical cooridinates(Degrees Minutes Seconds)
>
> > > I was wondering if anyone here has some useful suggestions for input
> > > controls or data validation.
>
> > > I've been searching the google for a while but can't find anything
> > > very useful.
>
> > > Thanks.- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

Reply via email to