Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi all,

I kept a datagrid in one panel. User can enter a new enter and click on save. everything works fine. But, a soos as the user clicks on refresh after saving, a duplicate record is insereted. Basically whats happeneing is previous event is fired again. but I dont want that to happen. is there a way to do.

Note: I think as a programmer not as a human, so use my answer at your will
Posted
You can use javascript to set a hidden value in the form after the submit to indicated whether the form was submitted. If that doesnt work for you, how about a cookie or session varaible. You will have to decide how to determine if the data being submitted really is a duplicate or not.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...