All About SharePoint

Liedong(Ken) Zheng,SharePoint Leader at SIMPLOT

Archive for February, 2011

IT Pro .chm files for SharePoint 2010 Products and related products

Posted by ken zheng on February 24, 2011

You can save the following downloadable files to a local machine so that the technical docs are accessible even when you are offline.

They have also published .chm files for the following IT Pro content sets:

Posted in Uncategorized | Leave a Comment »

Save site as a template option in sharepoint publishing sites

Posted by ken zheng on February 23, 2011

You may notice “Save Site As a Template” not appears in site settings page if you create your site as a publishing web site. This happened in SharePoint 2010 as well. Follow this tutorial you can make the “save site as a template” visible at all time. But for easy step, you can just append “/_layouts/savetmpl.aspx” to the url.

image

Another thing I found, if your source site has “AlternateCSSUrl”, when you saved the site as template and create a new site based on the template. You may receive the error like

07/19/2010 12:45:32.09  w3wp.exe (0x0A48)                        0×1754 SharePoint Foundation          Runtime                        tkau Unexpected System.Web.HttpException: Error executing child request for /Style Library/RMB.css.    at System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride)     at System.Web.HttpServerUtility.Execute(String path, TextWriter writer, Boolean preserveForm)     at ASP._controltemplates_topnavbar_ascx.__Render__control1(HtmlTextWriter __w, Control parameterContainer)     at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection

 

This also seems to only apply to sites that have Publishing features enabled. There are 3 main problems here…

Firstly, in your site definition you have a property called AlternateCSSUrl which specifies your stylesheet e.g. /Style Library/Main.css. However, your site settings page doesn’t access the CSS at http://servername/Style Library/Main.css as you think it would, instead it looks for the css at http://servername/_layouts/1033/Style Library/Main.css. So basically you can go create a folder called Style Library in the 1033 folder, copy the css in there and then change your onet.xml to have AlternateCSSUrl="Style Library/Main.css" and it should take the error away.

Secondly, if you do this you would notice that now the physical contents of you CSS file is being written to the actualy page above all your site settings. I have no idea why this happens, but when you open that CSS file and remove all the contents the site settings page now works correctly.

Thirdly, because the actual contents of the css are written to the page they are obviously not being applied and you have to go into your site settings and set the CSS of your site to point to your actual style sheet.

I am still trying to figure out how to set the actual style sheet of the site in the definition but for now this is all I could find.

My workaround is go back to the source site and turn off the “AlternateCSSUrl ” and save the site as template again.

image

Posted in Sharepoint | Tagged: , | 1 Comment »

A datasheet component compatible with sharepoint services is not installed in sharepoint 2010

Posted by ken zheng on February 17, 2011

You cannot view a list in Datasheet view on a SharePoint website after you install the 64-bit version of Microsoft Office 2010. 
When you click Actions and then click Edit in Datasheet on a SharePoint 2003 or 2007 site, or you click the List tab and then click Datasheet view on a SharePoint 2010 site, you receive the following error message:

The list cannot be displayed in Datasheet view for one or more of the following reasons:

  • A datasheet component compatible with Microsoft SharePoint Foundation is not installed.
  • Your Web browser does not support ActiveX controls.
  • A component is not properly configured for 32-bit or 64-bit support.

Here is the link to the Microsoft support.

http://support.microsoft.com/kb/2266203

Posted in Sharepoint | Tagged: | Leave a Comment »

Anything Slider for SharePoint

Posted by ken zheng on February 16, 2011

image

I followed CSS-Tricks to set up a slider for announcement list

http://davecavins.com/2009/12/css-tricks-anythingslider-in-sharepoint/

here is some tips, when add data view web part. Make sure you select Empty Data View then select Announcement as data source. Also you need to Insert Selected filed as “Multiple View”

 

image

Posted in Uncategorized | 1 Comment »

your client does not support opening this list with windows explorer in server 2008

Posted by ken zheng on February 14, 2011

Just need to install Desktop Experience feature on your server. After installing the feature, everything worked correctly.

Posted in Uncategorized | Leave a Comment »

Know the site template used for the SharePoint site

Posted by ken zheng on February 11, 2011

I found this post from the net. It is very helpful if you want to know the template that site is using.

http://praveenbattula.blogspot.com/2010/08/know-site-template-used-for-sharepoint.html

to check templat ID. Have a look

http://www.sharepointdevwiki.com/display/sp2010/Site+Templates+in+SharePoint+2010

Posted in Sharepoint | Leave a Comment »

Max/MinValue properties of the RadNumericTextBox.

Posted by ken zheng on February 8, 2011

One day when I enter a huge number in RadNumbericTextBox, once tab away, it converted to “70368744177664”. After search around I found

MaxValue Property – Gets or sets the largest possible value of a RadNumericTextBox.  The default value is positive 70368744177664.

MinValue Property – Gets or sets the smallest possible value of a RadNumericTextBox.   The default value is negative -70368744177664.

So if you want enter any value larger or less than default,you need to set maxValue or MinValue

like:

            <telerik:RadNumericTextBox  
                ID="RadNumericTextBox1"  
                runat="server"  
                MaxValue="0.9999"  
                MinValue="-0.9999"> 
            </telerik:RadNumericTextBox> 

Posted in .Net | Tagged: | Leave a Comment »

Red Gate will be charging $35 for .NET Reflector‏

Posted by ken zheng on February 2, 2011

So no more free Reflector after this month, be quick to download.

http://www.red-gate.com/products/dotnet-development/reflector/

Posted in .Net | Tagged: | Leave a Comment »

Image Link in CSS

Posted by ken zheng on February 2, 2011

Most time you want to have nice image button. I use Telerik images

http://demos.telerik.com/aspnet-ajax/button/examples/embeddedicons/defaultcs.aspx

and all the nice images are in one png

image

To use it you need css:

    a.rbCancel
    {
        height: 20px;
        width: 20px;
        margin: 5px;
        display: block; 
        background-image: url("../PublishingImages/rbPredefinedIcons.png");
        background-position: -72px 0 !important;
    }
    a.rbExtract
    {
        height: 20px;
        width: 20px;
        margin: 5px;
        display: block;
        background-image: url("../PublishingImages/rbPredefinedIcons.png");
        background-position: -280px 0 !important;
    }

.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }

and your link buttons

<asp:LinkButton ID="btnExtract" runat="server" CssClass="rbExtract" CommandName="Extract"
CommandArgument='<%# DataBinder.Eval(Container.DataItem,"OrderNo") %>' ToolTip="Click to Extract" />
<asp:LinkButton ID="btnCancel" runat="server" CssClass="rbCancel" CommandName="CancelOrder"
CommandArgument='<%# DataBinder.Eval(Container.DataItem,"OrderNo") %>' OnClientClick="return confirmPop();"
ToolTip="Click to Cancel" />

.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }

if you want to have hover effect, add

a.rbExtract:hover

{

background-image:url(images/SaveButton20_hover.png);

}

.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }

Posted in .Net | Tagged: , | Leave a Comment »

jQuery 1.5 Released

Posted by ken zheng on February 1, 2011

http://blog.jquery.com/2011/01/31/jquery-15-released/

Posted in jQuery | Tagged: | Leave a Comment »

 
Follow

Get every new post delivered to your Inbox.

Join 28 other followers