The webpart is duplicated in case of the SharePoint app updating -


i have sharepoint hosted app. there list in app, , brought through web part on page.

       <div>                  <webpartpages:webpartzone runat="server" frametype="none" id="webpartzone" >                     <webpartpages:xsltlistviewwebpart                         runat="server"                         listurl="lists/ideaslist">                     </webpartpages:xsltlistviewwebpart>                 </webpartpages:webpartzone>              </div> 

everything works there 1 problem, in case of application updating page on placed web part replaced (html code), web part duplicated (on page 1 more copy of web part added below).

how add web part on page wasn't duplicated in case of updating?

i had same issue , did remove webparts before update. can delete them manually via url. option implement event receiver delete webparts before. hope helps you.


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -