In ASP. NET, I have been thinking about how to make the interaction between the client and the server flexible?
For example:
When submitting an order, the customer needs to obtain the customer's credit limit from the database. If the credit limit is exceeded, a prompt box is displayed, asking: Do you want to continue when the credit limit is exceeded? If the customer clicks "yes", save the order. If the customer clicks "no", discard the order. If the customer clicks "yes", determine whether to continue placing the order if the inventory quantity is insufficient.
In such a case, you must first submit the statement and then judge the data on the server. Then, a client script is displayed to confirm. You must continue to submit the statement on the server based on the customer's confirmation.
I want to know if there is a good solution to this situation.
I have read a bessagebox. Net Control. Theoretically, this control can solve the above problems. However, it is annoying.
Website: http://www.sophistech.com/SophistechSite/default.aspx
Sample: http://www.sophistech.com/SophistechSite/LiveSamples/MessageBoxSample.aspx is slow
I hope you can discuss it. Is there a good solution?