G
G
Georgy Grigoriev2013-01-30 17:48:07
JavaScript
Georgy Grigoriev, 2013-01-30 17:48:07

Validation

The question is more philosophical and architectural. There is a model order, and it has names. Situation: there is a page, html content of which (names) is mostly generated via asp:gridview. There are various inputs in the grid lines, for subsequent recording of values ​​in the database, the order attributes are also arbitrary inputs. And there are some rules for handling order properties. What, for example, the sum parameter, if there are 4 goods of certain categories in the order items, should be considered a fixed amount for these items, and the remaining items should not be processed in any way, but simply summed up. A prerequisite is the presence of these 4 items in the order. And there is a display of the total amount of the order. The question is, how is it better to write validation + displaying the total. Regular js + jquery and check on the client,

ps could not clearly explain what I wanted to ask, but I think the essence is clear.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
PetrovSerega, 2013-01-31
@PetrovSerega

Agree with saynt2day . In my opinion, validation on the client serves to reduce the load on the server, and validation on the server ensures security. The second approach is required, while the first is desirable.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question