SharePoint webpart – if you don’t want it to load twice

You developed a visual webpart but you found your code in page_load was called twice. What do you do? You should check if it is a post back. How? Here is the code:
if(!this.Page.IsPostBack)

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a comment