asp.net formview (using object datasource) postback insert
问题 I have a formview which using objectdatasource and default mode = insert... but after I inserted item if you refresh page inserting again and again....I tried Is.postback control but couldnt prevent this.Is there anyway to do it ? 回答1: That is a common fundamental problem, which is a little harder to solve. There are a couple of ways to deal with it. You could use a means to detecting a page refresh, like this: http://www.codeproject.com/Articles/68371/Detecting-Refresh-or-Postback-in-ASP-NET