STSADM.exe -o SetSharedWebServiceAuthn –ntlm
Negotiate
STSADM.exe -o SetSharedWebServiceAuthn –negotiate
STSADM.exe -o SetSharedWebServiceAuthn –ntlm
STSADM.exe -o SetSharedWebServiceAuthn –negotiate
using Microsoft.SharePoint.WebControls;
PeopleEditor editor = new PeopleEditor();
editor.AllowTypeIn = true;
editor.AutoPostBack = false;
editor.AllowEmpty = true;
editor.MultiSelect = false;
editor.ValidatorEnabled = true;
editor.EnableViewState = true;
PeoplePickerHolder.Controls.Add(editor);
string users = editor.CommaSeparatedAccounts;
| Plug-in Name | Documentation | Sample | |
|---|---|---|---|
| Overlay | http://flowplayer.org/tools/overlay/index.html Download – http://flowplayer.org/tools/download/index.html | ||
| Tabs | http://flowplayer.org/tools/demos/tabs/index.html | ||
| Scrollable | http://flowplayer.org/tools/demos/scrollable/index.html | ||
| Tooltip | http://flowplayer.org/tools/tooltip/index.html | ||
| tablesorter | http://tablesorter.com/docs/index.html | ||
| Jquery Form Plugin | http://malsup.com/jquery/form/ |
public static string GetCurrentView(this HtmlHelper helper)
{
string controller = helper.ViewContext.RouteData.GetRequiredString("controller");
string view = helper.ViewContext.RouteData.GetRequiredString("action");
return controller + "_" + view;
}
Ex : string currentView = Html.GetCurrentView();
public static string GetIPAddress(NameValueCollection serverVariables)
{
var ip = serverVariables["HTTP_X_FORWARDED_FOR"];
if (!string.IsNullOrEmpty(ip))
{
string[] ipRange = ip.Split(',');
if (null != ipRange && ipRange.Length > 0)
{
int le = ipRange.Length - 1;
string trueIP = ipRange[le];
ip = trueIP;
}
else
{
ip = serverVariables["REMOTE_ADDR"];
}
}
else
{
ip = serverVariables["REMOTE_ADDR"];
}
return ip;
}
Ex: string userIPAddress = GetIPAddress(Request.ServerVariables);
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = true, AllowMultiple = false)]
public class SampleRequireSSL : RequireHttpsAttribute
{
public override void OnAuthorization(AuthorizationContext filterContext)
{
if (Sample.Web.Areas.Admin.Helpers.ConfigSettings.RequireSSL)
{
base.OnAuthorization(filterContext);
}
}
}