Saturday 17 December 2011

How to know if a page is Edit,Display or New form Programatcally sharepoint

A quick tip - If you're are looking for a way to find out the current state of your form for e.g. if its a Edit, New or Display form you can do this simply by using the following line

SPContext.Current.FormContext.FormMode

Return values -
Display
Edit
Invalid
New

No comments:

Post a Comment