Base solution for your next web application
Open Closed

Server validation not working as expected while clicking submit Button very fast. #8121


User avatar
0
shimi created

Hi,

I am checking duplicate name validation in server function, but when clicking save button fastly server process parallel requests and enters same name in database. I know that this can be avoided setting constraints in Database, but is there any solution other than this, because when we are dealing with a huge logic validation in server this will happen and validation fails.

I am updating here for maliming

you can check it in Aspnet Role creation itself

Project Type: Angular with .netcore webapi

**Steps to do **

  1. Remove disable of button in rolecreation popup
  2. put a break point in new Rolecreation function in apiproject
  3. Run both projects(API & Angular)
  4. Click the New Role button, add new role
  5. Then click Save button several times
  6. Can see new Role with duplicate names are saved.

2 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    but when clicking save button fastly server process parallel requests and enters same name in database.

    Please share your code.

  • User Avatar
    0
    ismcagdas created
    Support Team

    This issue is closed because it has not had recent activity for a long time.