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

OverTheWire[.com] Natas Walkthrough - JUST HINT, NO SPOILERS

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

SOLVED The item could not be indexed successfully because the item failed in the indexing subsystem