开发者

Webpart is in edit mode?

开发者 https://www.devze.com 2023-01-28 22:38 出处:网络
I have a webpart in a page and I need to know how I can determine if the page is开发者_C百科 currently in edit mode. For example: if(Page.IsInEditMode).

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

Any help?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消