Sunday, June 5, 2011

SharePoint 2007/SharePoint 2010 trainings




Hi ,
We are at DataPoint Infotech offering wide range of courses for Microsoft SharePoint Server 2010. We know that professionals want to learn from professionals. Our instructors are Real time industry experts working for Good MNC’s. They are certified industry leading instructors with real world experience. DataPoint Infotech guarantees quality instructors for delivering the courses as per the schedules.
SharePoint Application Development Training: Our training course has been designed to give developers everything they need to know to begin using SharePoint to create commercial collaboration and portal projects.
SharePoint Administrators Training:
This course is designed for the IT professional who has been tasked with setting up, managing and maintaining Microsoft's SharePoint Server 2010 platform. During this course you will learn how to install SharePoint Server, create and manage Web applications and site collections as well as understand their place and purpose within the SharePoint platform. You will also learn about the new implementation of service applications and gain an understanding of the document management features provided by this newest edition of SharePoint Server.
SharePoint End Users Training:
Gain the hands-on skills required to use and manage content in a Microsoft SharePoint 2010 environment. Learn about site navigation, document storage and retrieval and how to create and manage sites, lists, and libraries. This course is intended for everyone who works with SharePoint 2010 on a daily basis.
New Batches:
SharePoint Application Development: Every Week we have New Batches
SharePoint Administration/Configuration: Every Week we have New Batches
SharePoint End Users Training: Every Week we have New Batches
Course content Available Here:
Training formats: we have both Regular and Weekend Batches
Duration: 50 hours. It is completely hands on training with examples.
Timings: Timings are flexible as per the participants. We have both Regular/Weekend Batches available
Benefits:-
Study material
Interview Guidance
Mock Tests
Mock Interviews
Resume Preparation as per the standards
Guidance for Microsoft SharePoint MCTS Certification Exams
MNC Referral
Note: We are also providing Guarantee Job Training for freshers with Money Back Offer.
For complete information have a look on below link:
Venue Address:
#1-24/5,3rd Floor, S.P Mansion Building
Marathahalli,
Bangalore-37
Land Marks:
1. Besides to Coupon Mall
2. Near to Axis Bank
3. Brand Factory
Regards,
Venkat
+91-9916229967

Thursday, June 2, 2011

Deploying Master Page using Feature Receiver in SharePoint 2010

Deploying Master page need to create module which is available as template in Visual studio 2010. I created a Module. A module can be used to deploy files to your SharePoint environment and the scenario I came up with was to use a module to deploy a master page.

• I started out by creating an Empty SharePoint project. This can have any name you like and it can be both a farm and a sandboxed solution

• Next add an new item to the project and choose a module

• You can rename the module if you want to, I will leave the name at Module1

• After the module is created it contains an elements.xml file and a sample.txt file. The sample.txt file can be renamed to sample.master.



Project structure after adding a module and renaming the sample file to sample.master

I’m not a designer, so I wasn’t interested in creating a brilliant new design (good job, because I wouldn’t be able to do that!).

For the purpose of this example I just took the standard SharePoint 2010 master page contents.

• Open up SharePoint Designer and open the site you are working on

• Choose Master Pages on the left side

• Open v4.master

Don’t let SharePoint fool you. There is a default.master, but this is the old SharePoint 2007 master page that is used if you perform a visual upgrade. When creating a site in SharePoint 2010 the master page that will be used by default is v4.master. I know it’s a bit confusing, but if you have been working with SharePoint for a while you won’t be surprised by this.

• Copy the contents of v4.master and past them in your sample.master file in Visual Studio. Make the changes you want to.

• Note how the elements.xml file has changed to reference the sample.master rather than the sample.txt





The contents of the elements.xml file

• Make sure the module is added to a feature in your project that is scoped at the site (= site collection) level

• You could stop here and this solution will deploy your sample.master master page to the master page gallery of your site collection.

This will not apply the master page to the site collection when the feature gets activated though. It will only make it available for selection.

• If you the master page to be applied when the feature gets activated you right click on the Feature1 and you add an event receiver. This will add a feature receiver file to the feature.

• In this file we will add some code that will apply the sample.master master page when the feature gets activated and it will apply the v4.master when the feature gets deactivated.


• Code used in the feature receiver

• Now if you activate the feature the code in the feature receiver will run and will apply sample.master to the site. As you can see we change both the MasterUrl and the CustomMasterUrl. The MasterUrl is used on all pages that are not publishing pages. This means it is used on the pages in the sitepages library and on the pages in the _layouts directory like the settings page for instance. The CustomMasterUrl is only used on pages that are stored in the Pages library. This library is created when the SharePoint Server Publishing Infrastructure features is activated on the site collection and the SharePoint Server Publishing feature is activated on the site.

• You can also use the SharePoint user interface to apply a new master page. The Site Master Page is the equivalent of the CustomMasterUrl and the System Master Page is what the object model calls the MasterUrl.



Changing the master page using the SharePoint user interface