PC Review


Reply
Thread Tools Rate Thread

Autopostback field with a check.

 
 
Mufasa
Guest
Posts: n/a
 
      2nd Oct 2007
I have a page where there's some math being done between a couple of fields.
They are autopostback so essentially it won't let them go on if certain
conditions aren't met. If the person tabs out of one of the fields I do the
checks and if they pass I move to the next field. But if don't I want it to
stay on the field.

I've got all that working except if somebody enters a value and then clicks
a different field, since I don't know what the field is they clicked on, it
just moves to the next field on the screen which is annoying.

I've seen the CompateValidator but that only can compare one field to
another field. I'm actually going to have to do some math before the
compare.

Anybody have any suggestions?

TIA - Jeff.


 
Reply With Quote
 
 
 
 
Aamir Ghanchi
Guest
Posts: n/a
 
      2nd Oct 2007
On Oct 2, 1:37 pm, "Mufasa" <j...@nowhere.com> wrote:
> I have a page where there's some math being done between a couple of fields.
> They are autopostback so essentially it won't let them go on if certain
> conditions aren't met. If the person tabs out of one of the fields I do the
> checks and if they pass I move to the next field. But if don't I want it to
> stay on the field.
>
> I've got all that working except if somebody enters a value and then clicks
> a different field, since I don't know what the field is they clicked on, it
> just moves to the next field on the screen which is annoying.
>
> I've seen the CompateValidator but that only can compare one field to
> another field. I'm actually going to have to do some math before the
> compare.
>
> Anybody have any suggestions?
>
> TIA - Jeff.


Can you handle events like TextChanged, CheckChanged,
SelectedIndexChanged and validate the values in them and of not
correct then refocus back on the control with validation message.
How about using CustomValidator?

 
Reply With Quote
 
Mufasa
Guest
Posts: n/a
 
      3rd Oct 2007
That's essentially what I'm doing. The problem is when the value is valid
and somebody clicks off to another field. I'd like to have tab work so it
moves to the next field or have them be allowed to select a different field
by clicking on it.

"Aamir Ghanchi" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Oct 2, 1:37 pm, "Mufasa" <j...@nowhere.com> wrote:
>> I have a page where there's some math being done between a couple of
>> fields.
>> They are autopostback so essentially it won't let them go on if certain
>> conditions aren't met. If the person tabs out of one of the fields I do
>> the
>> checks and if they pass I move to the next field. But if don't I want it
>> to
>> stay on the field.
>>
>> I've got all that working except if somebody enters a value and then
>> clicks
>> a different field, since I don't know what the field is they clicked on,
>> it
>> just moves to the next field on the screen which is annoying.
>>
>> I've seen the CompateValidator but that only can compare one field to
>> another field. I'm actually going to have to do some math before the
>> compare.
>>
>> Anybody have any suggestions?
>>
>> TIA - Jeff.

>
> Can you handle events like TextChanged, CheckChanged,
> SelectedIndexChanged and validate the values in them and of not
> correct then refocus back on the control with validation message.
> How about using CustomValidator?
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Could of field with autopostback - how to be able to set focus correctly. Mufasa Microsoft ASP .NET 1 5th Oct 2007 04:29 AM
Can I change the check style for the check box form field in '03? =?Utf-8?B?TWVyY3VyeQ==?= Microsoft Word Document Management 1 15th Aug 2006 11:29 PM
Putting an actual check mark in a check box form field. =?Utf-8?B?TWFyZ290?= Microsoft Word Document Management 2 21st Feb 2005 09:59 PM
Required Field Validator and autopostback =?Utf-8?B?UGF1bFBvb3Rz?= Microsoft ASP .NET 0 15th Mar 2004 03:41 PM
autopostback not going to next field Thomas Scheiderich Microsoft ASP .NET 0 17th Feb 2004 03:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:44 AM.