Sharepoint Edit mode catch PostBack type (save, publish, ect.)

PageStateGroupSaveAndStop: means the user clicked "Save"

PageStateGroupSave: means the user clicked "Save and keep editing"

PageStateGroupPublish: means the user clicked "Save and keep editing"

ifPage.Request.Params["__EVENTARGUMENT"] == "PageStateGroupSaveAndStop"   // שמור
  || Page.Request.Params["__EVENTARGUMENT"] == "PageStateGroupSave"       // שמור והמשך עריכה
  || Page.Request.Params["__EVENTARGUMENT"] == "PageStateGroupPublish")   // פרסם
  {






Comments

Popular posts from this blog

c# Service Play Sound with NAudio example by Moshe

Asp.Net Ending Response options, Response.End() vs CompleteRequest()

JS/JQ simulate Enter event