Validate the sum of textbox
-
Hello, I have placed 5 textboxes on a web page (ASP.NET using VB) and one for input of sum above 5 textboxes. I want to validate the 6th textbox something like it.. suppose sum of 5 textboxes is 1032 and now focus is in 6th (i.e. total) textbox; so here only "1032" characters should be allowed no other; and they should be in this order only; not like 1302 or something like (after pressing 1 it will accept only 0 no other key). How to get this feature please tell me. I know this can be achieved by javascript but less knowledge throw me in the forum. Thanks & Regards Girish Sharma
-
Hello, I have placed 5 textboxes on a web page (ASP.NET using VB) and one for input of sum above 5 textboxes. I want to validate the 6th textbox something like it.. suppose sum of 5 textboxes is 1032 and now focus is in 6th (i.e. total) textbox; so here only "1032" characters should be allowed no other; and they should be in this order only; not like 1302 or something like (after pressing 1 it will accept only 0 no other key). How to get this feature please tell me. I know this can be achieved by javascript but less knowledge throw me in the forum. Thanks & Regards Girish Sharma
-
Use a CustomValidator[^]. Or Why can't you make the 6th text box read only?
-
Hi, Don't allow User to Calculate the Sum in which case there is a chance to enter the wrong value. So You must calculate the value on the textChange Event of the 5th TextBox. This is very Simple. Bye. :rose::rose::rose: Learner will gain more knowledge than Teacher.
-
Hi, Don't allow User to Calculate the Sum in which case there is a chance to enter the wrong value. So You must calculate the value on the textChange Event of the 5th TextBox. This is very Simple. Bye. :rose::rose::rose: Learner will gain more knowledge than Teacher.
This is my business need please. User is doing the data feeding job in this web application. He will enter 5 number and 6th as sum of 5. Now if 1.user has done mistake or 2.the input source(a pre-printed data sheet which will be written by other staff) is having mistake; can be traced out and it will stop to error in database. He will only allowed to feed the right digits in the right order only or press escape key to recorrect the value(s) of above any of 5 inputs. Thanks & Regards Girish Sharma