Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Webpart is in edit mode?

I have a webpart in a page and I need to know how I can determine if the page is currently in edit mode. For example: if(Page.IsInEditMode).

Any help?

like image 416
Leonardo Avatar asked Oct 14 '22 20:10

Leonardo


1 Answers

Have a look at the class System.Web.UI.WebControls.WebParts.WebPartManager

It has an EditDisplayMode property that represents the display mode in which end users can edit and modify server controls. See doc here

like image 139
Simon Mourier Avatar answered Nov 09 '22 11:11

Simon Mourier