Sharepoint has a .NET control for registering CSS files in a SharePoint
masterpage called SharePoint:CSSRegistration. Use the ~Site token to specify the
current site. This control goes in the head section of the
masterpage.
<SharePoint:CssRegistration name="<%
$SPUrl:~Site/CSS/gilariver.css%>" runat="server"/>
New to
SharePoint 2010
You can specify the order using the
After property. The After property contains the name of the CSS
that you want to place the CSS after. The ConditionalExpression
parameter will tell the CssLink to render the Conditional-CSS code as well as
the CSS link.
Tuesday, April 26, 2011
Using the RadCaptcha control
RadControls has a RadCaptcha control that can be used in .NET applications or
SharePoint web parts. Add the RadCaptcha image handler to the web.config file to
use the captcha:
<system.webServer>
...
<handlers>
...
<add name="Telerik.Web.UI.WebResource" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2010.3.1317.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />
...
</handlers>
</system.webServer>
<system.webServer>
...
<handlers>
...
<add name="Telerik.Web.UI.WebResource" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2010.3.1317.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />
...
</handlers>
</system.webServer>
Wednesday, April 6, 2011
SharePoint List displayed in XML using OWSSVR.dll
OWSSVR.dll will, among other functions, return the XML data of a SharePoint
List. The format of this utility
is:
http://yourserver/yourweb/_vti_bin/owssvr.dll?Cmd=Display&List={guid}&XMLDATA=TRUE
http://webcs10.cgc.maricopa.edu/student-affairs/athletics/athletics/_vti_bin/owssvr.dll?Cmd=Display&List=5C1E1425%2D8F8E%2D4427%2D8B4A%2D1A97748B4AD6&XMLDATA=TRUE
More information can be found here:
http://msdn.microsoft.com/en-us/library/ms478653.aspx
http://yourserver/yourweb/_vti_bin/owssvr.dll?Cmd=Display&List={guid}&XMLDATA=TRUE
http://webcs10.cgc.maricopa.edu/student-affairs/athletics/athletics/_vti_bin/owssvr.dll?Cmd=Display&List=5C1E1425%2D8F8E%2D4427%2D8B4A%2D1A97748B4AD6&XMLDATA=TRUE
More information can be found here:
http://msdn.microsoft.com/en-us/library/ms478653.aspx
Subscribe to:
Posts (Atom)