Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / October 2007

Tip: Looking for answers? Try searching our database.

Autopostback field with a check.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mufasa - 02 Oct 2007 19:37 GMT
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.
Aamir Ghanchi - 02 Oct 2007 22:46 GMT
> 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
[quoted text clipped - 13 lines]
>
> 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?
Mufasa - 03 Oct 2007 03:53 GMT
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.

>> I have a page where there's some math being done between a couple of
>> fields.
[quoted text clipped - 23 lines]
> correct then refocus back on the control with validation message.
> How about using CustomValidator?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.