Showing posts from December, 2011

How to create a Tab using the labels in the blogger

In the previous article, we have discussed about increasing the traffic or the number of users to the blog.In this article, we will discuss how to create a tab using the labels which you have created for the posts in your blog.

If you have the older version of the blog, then in the design mode you will see an option for “Try the Updated Blogger Interface” and click to update to the new interface as shown below.

Don’t worry, at any time you can switch back to the older interface. After updating to the new interface, go to the design and you will see a right navigation bar. In that, select Pages as shown below. Once you click Pages, you will get a popup window allows you to create a blank page and the other is web address as shown below. We will select web Address, as we are going to create a tab using the existing label URL. Example: So, http://blogname/search/label/labelname When you click the Web address (as shown in the above figur…

How to hide the download a copy option (Context Menu) in the Document Library

In the document library we have an option of downloading the document as shown below.

If the user wants to hides or remove this option for all the users. The following steps will explain the same. 1. First locate the following path C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\1033 2. Find the file named “CORE.js”. This is the file which will run the scripts downloading option for the document library. 3. Open the core.js file in best .js file editor and search for the function  AddSendSubMenu(m,ctx) Where you can see menuOption=CAMOpt(sm, L_DownloadACopy_Text, strAction, "");"ID_DownloadACopy"; These lines of code which will display text "Download A Copy" and call the menu operation. So, comment the code and save the file. 4. Now when you search the context menu (Download a copy) option will be hidden as shown in the following figure.
Disadvantage The above solution w…

How to hide the left navigation bar in the SharePoint

In this article, we will see how to hide the left navigation in SharePoint siteThere are many ways for hiding the left navigation in the SharePoint. Here is the simplest way to hide it.
1.Master.FindControl("PlaceHolderLeftNavBar").Visible = false;
2.Place a content editor in the page you want to hide the left navigation pane in the site and add the following code in the source editor which will hide the left navigation bar.

<style> .ms-navframe { display:none; } </style> That’s it. We have easily hide the left navigation bar with a simple code.

How to increase the Traffic or the Users to a Blog

Hi All,
We will start discussing about the blogger tips also.
In this article, we are going to discuss how to increase the traffic to your blog. I have listed it below.
1. Design the UI properly – Branding
     The Look and feel is very important for a blog. This is the first thing which attracts the users to visit your blog often. So, plan the design and use proper templates or themes which suites your content.
2. Provide easy navigation for the users
The navigation is very important, which makes the readers to navigate easily
without any difficulties. The readers must able to navigate to different pages and posts with the proper navigation techniques provide by you.
3. Write well and often
The Number of more posts in your blog will increase the number of users and also the search engines will easily crawl and navigate the users to your blog. Also, write clearly and give the content which is new and useful to the readers.
4. Add Images for clear understanding
If your want to impress the reade…

Programmatically Creating Site Backup in SharePoint

In the previousarticle, we have discussed about creating and restoring the SharePoint site using stsadm command.
In this article, we will see how to take the backup of the site using SharePoint Object Model.The below is the code that will create the backup of the site and log the information in a log file. using System; using System.Collections.Generic; using System.Text; using System.IO; using Microsoft.SharePoint; using Microsoft.SharePoint.Administration; namespace SiteBackUp { public class SiteBackup { static void Main(string[] args) { siteBackup("http://servername:portnumber","SharePointSiteBackup"); } public static void siteBackup(string siteURL,string fileName) { try { SPSecurity.RunWithElevatedPrivileges(delegate() { using(SPSite objSite=new SPSite(siteURL)) { using(SPWeb objWeb=o…

stsadm Command for Creating Backup and Restoring a Site in SharePoint

In this article, we will discuss how to take a backup and restore it using the stsadmn command in SharePoint (WSS 3.0, MOSS 2007).
In SharePoint 2010, we use Power Shell instead of this command. Before going for that let’s discuss about stsadm What is stsadm command? It is a command line tool for administration of SharePoint sites. Where it is located in the server?
Normally, it is present in the following path
C:\ProgramFiles\Common Files\Microsoft Shared\Web Server Extensions\12\Bin
When you are in the Admin groups, you will able to use this command and perform all the functions. Site Backup & Site Restore: Navigate to the following path in command prompt first C:\>cd Program Files\Common Files\Microsoft Shared\web server extensions\12\bin
1. C:\ Program Files\Common Files\Microsoft Shared\web server extensions\12\bin>stsadm.exe –o backup –url “Site URL” –filename “Location of DAT file with extension” -overwrite 2. C:\ Program Files\Common Files\Microsoft Shared\web server extensions\1…

Deploying Silverlight Application in SharePoint 2010

In the previous article, we have discussed about creating a simple Silverlight Application in Microsoft Visual Studio 2010.
Now, in this article we will discuss how to deploy the solution in the SharePoint 2010.
The New webpart feature added in the SharePoint 2010 and SharePoint Foundation 2010 is Silverlight which comes under Media and Content category. The Solution of the Silverlight application produces a package with extension .XAP Note: The .xap file is a package which consists of the solution created in the Silverlight Application Hence, copy the XAP file in the SharePoint Document library and copy the shortcut (Link) of the file.
Now go to the page where you want to deploy the solution. Insert the Silverlight webpart as shown below

Now, edit the webpart and in the URL property, browse for the .xap file copied from the Shared Documents or copy the shortcut URL as shown below

Now save the page and you will see the silverlight webpart created as shown below
So, when you click the Click this…

Creating a Simple Silverlight Application in Microsoft Visual Studio 2010

In the previous article ,we have discussed about the basics of Silverlight and In this article, we will discuss how to create a simple silverlight application using Microsoft Visual Studio 2010.
Go to Visual Studio File ->New Project Select Visual C# in projects -> Silverlight Application (I have used .Net Framework 4.0) Now, you will see a pop-up window like this This windows gives the options for the user to create a new web application within the solution so that, we can test the silverlight application created here. Here in our project, SampleSilverlightApplication.web is the web application created and we also select the silverlight version here. Once clicked OK, a new silverlight application will be created as shown below You will two projects created in the solution one is to design and code the application and the other is to test the application. MainPage.xaml contains the design part of the application and MainPage.xaml.cs is the code behind where you will write the busines…

Silverlight Basic Tutorials

What is Silverlight? Various Definitions from the internet:       1. Microsoft Silverlight is a web application framework that integrates multimedia, computer graphics, animation and interactivity into a single runtime environment. 2. Silverlight is a new cross-browser, cross-platform implementation of the .NET Framework for building and delivering the next generation of media experiences and Rich Interactive Applications (RIA) for the web. It runs in all popular browsers, including Microsoft Internet Explorer, Mozilla Firefox, Apple Safari, and Opera.  The plug-in required to run Silverlight is very small in size hence gets installed very quickly. 3. A web browser plug-in that provides support for rich internet applications such as animation, vector graphics and audio/video playback. Silverlight competes with companies such as Adobe Flash, Adobe Flex, Adobe AIR, Adobe Shockwave, JavaFX, and Apple QuickTime.  4. Like Flash but made by Microsoft instead of Adobe. 5. Silverlight is the new Mic…

Creating Custom Properties in Word 2007

In the previous article, I have explained about creating custom properties in word 2003. In this article, we will see how to create custom properties in word 2007.
It is slightly different from word 2003 and involves the following steps.
1. Open the Microsoft Word 2007 and create a new word document.
2. For creating the Bookmark, we need Developer Tools option in the Microsoft Word Menu.
3. Hence, lets enable it by following the steps below
     a) Click the Microsoft Office button -> word options-> popular tab-> In the “top options for
         working with word” -> select the check box named “show Developer tab in the Ribbon”
     b) You will a see the tab like shown below

4.Now we will create the bookmark.
5. Select Developer Tab option-> select the legacy control as shown below
6. Here we are going to use only text boxes which is shown in the controls as “ab” as shown above in the red mark.
7. Now, Insert the text box control (a gray shaded portion will be inserted)
8. Now cli…

Creating Custom properties in Word 2003

In the articles Part I,Part II and Part III we have discussed about how to read the custom properties of word 2003 using  DSO dll in C# .Net.
In this article we are going to see about creating a bookmark and set the custom properties for the Microsoft Word 2003.
1. Open the Microsoft Word 2007 and create a new word document.
2. For creating the Bookmark, we need Forms option in the Microsoft Word Menu.
3.  Right click on the Menu bar and you will see forms options and check the option you will see the forms menu
4.   Then click the Textbox option (will be having a symbol ”ab”)
5.  Insert a text box and mouse click to see the properties. 6.   Now in the Bookmark option give the property name (here I gave it as CompanyName )
7. Now go to File Menu->properties-> Custom properties tab as shown below
8.  Now in the Name field give the Name (I gave as TestCompany) and check the Link to Content so that you will see the bookmark created and link the content we have created (CompanyName) 9. N…

MediaWebPart in SharePoint 2010

In this article, we will discuss how to use the out of box webpart named "Media WebPart" in SharePoint 2010.
Note : This webpart is prsent only in the SharePoint 2010 and SharePoint foundation. Steps: 1. Go to the sharepoint where you want to add themedia webpart. 2. Go to Edit Page -> Insert -> WebPart (from the ribbon) -> Categories (Media and Content) -> Select Media webpart and insert as shown below

3. Now click on Edit the webpart to configure the media.
4. Once clicked Edit you could see various options such asMedia, properties, Styles, Play Styles and Size. 5. Go to Change Media option and there ae three options here. you link a media from the SharePoint Library or from your local computer or from any web address.

6. Here I will insert from the local computer and click save the web part, the web part is ready to use.You will see the media web part as shown below.

I gave the option asStart Media Automaticallyin the Media Properties so that, it starts when the page l…

Tip of the Day WebPart for SharePoint

Hi All,
I would like to share a link which allows you to download theTip of the Day webpartfor sharepoint. You can download the webparthere. Configuring the webpart is clearly explained in the site.

SlideShow with Thumbnails using Silverlight for SharePoint

I would like to share a link which shows how to create a Slide Show for SharePoint using Silverlight in Microsoft Visual Studio 2010.

Embedding YouTube Videos to the SharePoint Site

Steps 1.Go to the YouTube site and navigate to the video which you like to embed in the SharePoint Application. 2.  Click on Share button below the video as shown below

3. On clicking Share you will find two options as Mail or Embed as shown below

4.  Copy the code from the Embed option as show above and save it in a notepad. I named it asyoutubetest.txt Code example in my case <iframe width="560" height="315" src="" frameborder="0" allowfullscreen></iframe>5. Upload the text file to SharePoint Document Library and right click on the file and
copy the shortcut from it. 6.  Now go to the SharePoint page where you like to add the YouTube video and edit  the page. 7. Click insert a web part -> add a Content Editor web part 
8. Edit the web part and now add the shortcut of the youtubetest.txt path in theContent Linkproperty of the web part or you can directly add the code which is copied from the YouTube …