Background introduction:
Since the test process needs to write some cases to simulate the operation of SharePoint, in the actual application process, there are some actions can not be written immediately, there are a series of ways to try to solve:
method to solve:
1. Search Google directly to see if there are any previous jobs, but sometimes you won't find
2. Use reflector to view the appropriate SharePoint DLLs to see what SharePoint's own actions look like
To list setting-"Validation settings example, first the page opens to the Validation Settings section, and then glue out the URL at this time to find the corresponding ASPX page, at this time we will see a call:
Vldsetng.aspx, then search for this file on the SharePoint machine and open it after finding the file:
<%@ Assembly name= "Microsoft.SharePoint.ApplicationPages, version=15.0.0.0, Culture=neutral, publickeytoken= 71e9bce111e9429c "%> <%@ page language=" C # "dynamicmasterpagefile=" ~masterurl/default.master "Inherits=" Microsoft.SharePoint.ApplicationPages.ValidationSettingsPage " %> <%@ Import namespace= "Microsoft.SharePoint.ApplicationPages"%> <%@ Register tagprefix= "SharePoint" namespace= " Microsoft.SharePoint.WebControls "assembly=" Microsoft.SharePoint, version=15.0.0.0, Culture=neutral, publickeytoken=71e9bce111e9429c "%> <%@ Register tagprefix=" Utilities "namespace=" Microsoft.SharePoint.Utilities "assembly=" Microsoft.SharePoint, version=15.0.0.0, Culture=neutral, publickeytoken= 71e9bce111e9429c "%> <%@ Import namespace=" Microsoft.SharePoint "%> <%@ Assembly name=" Microsoft.Web.CommandUI, version=15.0.0.0, Culture=neutral, publickeytoken=71e9bce111e9429c "%>
In the head you will see such a statement, look for the Inherits node, according to him to find the appropriate namespace, according to the namespace to find out which dll he belongs to, such as this find him in the Microsoft.SharePoint.ApplicationPages.dll
Then open this DLL with reflector, search directly for Microsoft.SharePoint.ApplicationPages.ValidationSettingsPage, usually in the name of *onload* or btnsave** Setting can get the answer you want in this way.
To find a SharePoint DLL by reflector