Microsoft Office Communicator 2010 makes collaborating with your business colleague trading easy I save so much time because I can quickly find and connect with coworkers that ever leaving my favorite office programs, and I am helping my company save costs by saving time for me and my coworkers, throughout Microsoft outlook excel, PowerPoint and word 2010.
Wednesday, December 29, 2010
Monday, December 27, 2010
Uninstall The Visual Studio- How ?
when you first time buying a computer, it is usually pre-installed applications and programs that a typical user needs. Over time, you will need to install additional software itself - one possibility is a program for Microsoft Visual Studio. Visual Studio is a complete kit for creating web-based applications. This is a really useful for web developers, but if you're online, you note that you should not use the software, after all?
Saturday, November 13, 2010
SharePoint 2010 Themes
As you all know SharePoint is a new theme engine, 2010. You can do interesting things, how to create a theme in PowerPoint, take it and then import it into SharePoint 2010, click Apply, and you have a custom theme. One aspect that I could not find documented is the definition of when you choose the color of a certain part that really change?
If you change the page theme, you can choose to use a collector OOTB or custom theme. Or you can choose your own color scheme through the following points.
If you change the page theme, you can choose to use a collector OOTB or custom theme. Or you can choose your own color scheme through the following points.
Thursday, November 11, 2010
NEXT SHAREPOINT 2011
In 2011, SharePoint 2010 will be the life cycle of the product is responsible for the teenager. Childhood is over. It is no longer that beautiful baby, or that cute guy. Now it was obvious pimples and issues that might reveal just one year the implementation of the real world. It is also the unexpected strength and add friends. And this year, the parents kicked out of the house by Microsoft, the team prepares for SharePoint vNext. So, what is expected of those awkward teen with SharePoint 2010? Let's look at the crystal ball.
Wednesday, November 10, 2010
SQL Server 2008 Spatial Tools
Now that SQL Server is compatible with the data geometry and geography types natively in SQL Server 2008 (and later) relational engine, developers and DBA are the types of data used wisely. There are many useful applications for spatial data types, and if you're not using, probably in the near future. If you have never seen a well designed application based on spatial data, I encourage you to take a look at toxicrisk.com, a website that displays the sites registered by the EPA toxic waste in the U.S. USA.
Monday, November 1, 2010
Microsoft SharePoint 2010 - an overview
SharePoint and Microsoft SharePoint Products and Technologies is a web publishing software where and other collaborations are grouped under a single server. Under this combination of activities such as portals, wikis, blogs, content management, etc., can be performed simultaneously. He made various works together. Either the content management, intranet, or any other task that can do everything on the same server.
Sunday, October 17, 2010
SharePoint Server 2010 Best Practices White Paper Use
In this paper, learn how to manage content effectively, how to choose the best option to show content and the most effective way to find the content later.
Wednesday, October 6, 2010
Overview of Sharepoint and document generation Contributor
Document generation, also called the docgen is an automated way to create and distribute documents. Instead of manually creating documents, you design a model-specific information and completes the model during the production process. document generation is the most comprehensive and effective to automate the documents.
An example, suppose your company offers a service and send invoices to customers each month. Its database contains details such as name and address of the customer, order date, quantity ordered, and so on. You can create a template that has everything, but the information - the design, company logo, contact details, the standard language, etc. When ready to run the invoice, the system will automatically extract the required information and create a single invoice for each customer. Your business can be waste of valuable resources without generating documents.
Microsoft SharePoint system is ideal for document production and document management. SharePoint is relatively easy to set up so that users of the Internet community, and system administrators to monitor the security of rights, which are all key features of the system for document generation. specific advantages of generation of the document, including:
- Libraries are a logical way to group a large number of documents and files
- Documents that are easier to find, distribute, create, and enforce business rules upon
- The ability to automatically save multiple versions of documents
- Workflows that can be applied to documents and complex business rules that can be set up for the lifecycle of templates and documents
- Documents that can accessed, updated and viewed by multiple people with just a few button clicks
But SharePoint is not necessarily a comprehensive document generation of the box. Just because SharePoint is a great ability does't mean that society must be immersed in every document and every model in it. It would be better in the long run if you spend some time initially to understand how many versions you want to save, the best way to organize your documents and save old documents. It is also wise to establish some sort of structure, continuous monitoring, or if you are in danger of unstable and chaotic
In addition, some features of the SharePoint document generation simply does not. For example, SharePoint has no built-in scheduler, which can be critical for document generation system without problems. third-party solutions such as Arrow Wind integrate and extend SharePoint to facilitate the generation of complete and detailed documentation.
To sum up, SharePoint is a solid document generation system that can be improved with some forethought and additional tools. If you’re looking for an easy-to-use, web-based document generation system, SharePoint is a good place to start.
An example, suppose your company offers a service and send invoices to customers each month. Its database contains details such as name and address of the customer, order date, quantity ordered, and so on. You can create a template that has everything, but the information - the design, company logo, contact details, the standard language, etc. When ready to run the invoice, the system will automatically extract the required information and create a single invoice for each customer. Your business can be waste of valuable resources without generating documents.
Microsoft SharePoint system is ideal for document production and document management. SharePoint is relatively easy to set up so that users of the Internet community, and system administrators to monitor the security of rights, which are all key features of the system for document generation. specific advantages of generation of the document, including:
- Libraries are a logical way to group a large number of documents and files
- Documents that are easier to find, distribute, create, and enforce business rules upon
- The ability to automatically save multiple versions of documents
- Workflows that can be applied to documents and complex business rules that can be set up for the lifecycle of templates and documents
- Documents that can accessed, updated and viewed by multiple people with just a few button clicks
But SharePoint is not necessarily a comprehensive document generation of the box. Just because SharePoint is a great ability does't mean that society must be immersed in every document and every model in it. It would be better in the long run if you spend some time initially to understand how many versions you want to save, the best way to organize your documents and save old documents. It is also wise to establish some sort of structure, continuous monitoring, or if you are in danger of unstable and chaotic
In addition, some features of the SharePoint document generation simply does not. For example, SharePoint has no built-in scheduler, which can be critical for document generation system without problems. third-party solutions such as Arrow Wind integrate and extend SharePoint to facilitate the generation of complete and detailed documentation.
To sum up, SharePoint is a solid document generation system that can be improved with some forethought and additional tools. If you’re looking for an easy-to-use, web-based document generation system, SharePoint is a good place to start.
Monday, September 13, 2010
SharePoint Dual Feature Bonanza
Microsoft SharePoint 2010 has more social and search features, which are intertwined to create an enticing platform for users. This and more is revealed in the Able Blue blog post “The MOSS Show Interview”, which takes you to The MOSS show site’s interview “Enterprise Social (and Search) in SharePoint 2010”.
The two part podcast interview of Matthew McDermott, who is a Microsoft SharePoint expert and MVP, talks about the new improved social features like improved My Sites, Activity Feed, tagging, rating, managed metadata, taxonomies, and folksonomies in SharePoint 2010. Matthew talks about the importance of having a search strategy, and leverage the search applications by making the search actionable and refined.
SharePoint 2010 can help create a knowledge base that benefit over a long period, and can be shared amongst users. Matthew points out, “What makes SharePoint 2010 special is its ability to gather feedback from people participating in the content consumption,” which enhances the value of the content, making it more important to the enterprise. This is enterprise social, which gains more relevance if “made more findable by tagging and using proper metadata.”
Matthew explains that SharePoint 2010 adds great enterprise social capabilities, and facilitates to integrate third party external applications like LinkedIn, Facebook, and Twitter outside the firewall from SharePoint 2010. These social tools can be used to create a business value. The new SharePoint 2010 allows the internal as well as external URLs in the browser to be tagged, and enables the list of all the tagged URLs to collect on a tag profile page.
The managed metadata store of SharePoint 2010, allows people to create a central repository of data through service applications. There is also a feature to make the data translatable into multi-lingual forms, and even deny the use of tags for various reasons. “Activity feed is a feature through which you get your news or tips of the day by just following the tags,” Matthew reports, “and you get the ability to consume content around the organization.” He believes that this helps the employees to connect with each other, nurture cooperation, and makes them productive by improving the culture of the workplace.
The beauty of SharePoint 2010, as per Matthew McDermott is that users can themselves decide upon the governance of the data, and thus get complete control of this powerful enterprise social platform, with highly developed search techniques.
Now, how expensive is it to maintain a proprietary system that requires hands on fiddling to make work as advertised? The answer to this question is not in the movie. Maybe the sequel?
Labels:
enterprise,
financial,
microsoft,
news,
search,
SharePoint,
technology,
text processing
Designer Tools Top SharePoint Designer 2010
Microsoft Office SharePoint Designer is a freelance journalist and Web design program, Microsoft SharePoint and other web sites. It is part of a SharePoint product family. SharePoint Designer shares its codebase, uI and HTML rendering engine of Microsoft Expression Web, and not rely on Internet Explorer Trident engine, which is less standards compliant. One of the differences of general application, web design, Expression Web, which contains only the SharePoint site-specific models.
SharePoint Designer 2010
April 24, 2010, the latest version of SharePoint Designer was launched, has been appointed the 2010th With SharePoint Designer SharePoint Designer 2010, you can build a full, rich, reusable, process-centric applications on the SharePoint platform, integration external data. SharePoint Designer 2010 makes it possible to build composite applications or configuring the design of components such as data sources, lists, content types, views, forms, workflows, and external typesall content without writing code. In addition, SharePoint Designer 2010 now offers tools for all major components of a SharePoint solution.
The user interface of SharePoint Designer 2010 has been completely redesigned to put SharePoint in SharePoint Designer. Now, all major components of a site or a list of solutions and content types, views and forms, workflow, external data sources and types of content, layout and master pages are easy to find. The new file tab, it is easy to open existing websites or create new sites. You can also open the pages and sites you've recently worked with, and add new components such as lists and workflow for the current site Each site has an introductory page where you can change the settings or manage various aspects of your site. For example, you can now manage permissions directly from the 2010th SharePoint Designer navigation pane, it is easy to find and access all the important components of a site you use to build a solution for the gallery pages make it easy to find and edit some of the important elements of your solution. The band will make you more effective and productive in SharePoint Designer 2010, because the tape surfaces all important functions in the proper context for what youre working. Another new interface for SharePoint Designer 2010 is focused on the surface of all the important components of a SharePoint solution. If you used the folder list in previous versions of SharePoint Designer, you can still have experience of working with files and folders on your site through all files in that view.
It is not just SharePoint Designer 2010th Theres a lot more for SharePoint 2010th Leverage SharePoint Designer and other useful features in SharePoint 2010 hosting, SharePoint or SharePoint Server 2010 Foundation - dedicated hosting or shared with a provider SharePoint 2010.
Microsoft Office SharePoint Designer is a freelance journalist and Web design program, Microsoft SharePoint and other web sites. It is part of a SharePoint product family. SharePoint Designer shares its codebase, uI and HTML rendering engine of Microsoft Expression Web, and not rely on Internet Explorer Trident engine, which is less standards compliant. One of the differences of general application, web design, Expression Web, which contains only the SharePoint site-specific models.
Sunday, September 12, 2010
Features and benefits of SharePoint Online
SHAREPOINT ONLINE
Now more than ever, companies use their employees in a variety of ways, realizing that people who do their work now, not just technology. The preparation of these two important and well understand the need for communication and collaboration solution will enable their companies to work together better and more efficiently. The problem arises when searching for this solution. In the fast moving technology market development occurs at a rapid pace. security needs are increasing and services are reduced manpower, and resources.
This is the solution, Microsoft SharePoint ® Online. SharePoint Online offers companies the tools to ensure that their employees work in an efficient and concerted effort to give them a place to find resources is an organization to find information, manage content and workflow, and provide businesses with information needed to make critical decisions. Based on Office SharePoint Server 2007 This hosted solution allows Microsoft employees to create and manage custom team and project areas targeted for cooperation, and is protected sharing feature. Users will have the flexibility and customization they need to work ingeniously organization. Microsoft deals with the installation, provisioning, and above all the ongoing maintenance and upgrade of Microsoft Office SharePoint Server infrastructure. Allow the department to recover what is most important for your business, driving your business to further their goals.
HOW IT WORKS:
SharePoint Online uses unnecessary and geographically dispersed data centers. Each data center houses a reliable infrastructure to support the service. SharePoint Online helps simplify IT administration by eliminating a company needs to install, configure, monitor and update / upgrade a collaboration solution on the premises. Since the Microsoft Online Administration Center, service administrators to create new site collections and sites, and provide access to specific users. With SharePoint Online, your business can be operational quickly with the tools your users need to communicate and collaborate effectively.
Migration:
Many customers are co-existing platforms or earlier versions of SharePoint Server. Working with our partners, Microsoft can help develop a strategy for transition to SharePoint Online.
KEY FEATURES
- Shared document and meeting workspaces
- Content management features for documents and Web content
- Document libraries with version control
- Seamless integration with Microsoft Office 2007 and Office SharePoint Designer
- Standard templates including wikis, blogs, and surveys
- E-mail alerts when documents or other items have been changed or added to a site
- RSS feeds for SharePoint libraries and lists
- Low-cost user licenses for "deskless workers" who use a PC on a limited basis
- Language support for English, French, German, Spanish, and Japanese
- Use of HTTPS to help keep Internet access secure
- Antivirus scanning with Microsoft Forefront™ Security for SharePoint
- Sign In application that provides single sign-on capability
- 99.9% scheduled uptime with financially backed Service Level Agreements
- Web form and 24/7 phone-based Tier 2 support for IT administrators
What are the new link to download the SDK for SharePoint 2010
Download link:
What’s new links:
What’s new links:
Wednesday, September 8, 2010
Linked servers in SQL Server
It is a different field, I want to focus more. What is this?? linked server ..................
Goto SSMS-> Your DB Server-> Server Objects-> Linked Server->Create new Linked Server
You will get a message box to type your Linked server. You need to provide the servername.
Specify whether the SQL Server or not. If SQL Server, to provide the information necessary for connection.
The second window is authentication, you need to specify the credentials used to access the Linked Server.
The third window specifies the options to be provided for the Linked server. If everything is good. Click "Ok" button.
Now, your Linked Server is created.
Now you see listed in the catalogs of the linked server.
Now, am trying to access the Linked Server's table,
Sunday, September 5, 2010
How good is SharePoint as a Document Management System? - response
This is in response to “How good is SharePoint as Document Management System?” by Toni Frankola. In the post, Toni scored SharePoint’s Document Management (DM) capabilities on a 5-star scale using the following criteria:
· Metadata – 5 stars
· Integration - 3stars
· Capture – 1 star
· Indexing – 5 stars
· Storage – 3 stars
· Retrieval – 3.5 stars
· Security – 3 stars
· Workflow – 4 stars
· Collaboration – 4 stars
· Versioning – 4.5 stars
SharePoint Document Management Needs Multi-file Documents
I liked the post overall and agreed with most of the ratings. However, I would lower SharePoint's marks for versioning, workflow, and security. The reason is that SharePoint supports only single-file documents. I.e. a logical document is stored as a single file in SharePoint. In order for SharePoint to truly excel as a DM system, SharePoint needs to support multi-file documents. When I say "multi-file" document, I mean something like a compound document or virtual document. Yes, SharePoint Server 2010 has document sets, but they are more like the SharePoint version of Office Briefcase rather than true multi-file documents.
SharePoint’s Single-file Document Limitation
SharePoint’s single-file document limitation manifests itself in these ways:
Versioning: The version information is not very granular. You can only tell when the entire document has changed, but you can not tell which part of the document has changed. For example, your 3-person team is creating a proposal with introduction, technical approach, and pricing sections. The entire proposal has 100 versions over its lifespan. How can you tell when the pricing section was changed without going through each version? The difficulty clearly stems from the fact that SharePoint stores the entire proposal document as a single file. If the proposal were stored as a compound or virtual document with the pricing section as a separate file, it would be very easy to see exactly when the section were changed and by whom independently of the entire proposal's version history. Let me reiterate that the proposal document is logically a single document not a set of documents grouped together, so it is not quite right to represent the proposal document as a document set.
Workflow: To extend the example of the proposal document, the 3-person team has grown to a 6-person team, with different members focusing on different aspects of the proposal. The proposal is about 400 pages now, and the team has just published a major version. The approval workflow takes a long time, because the approval workflow can only be run at the granularity of the entire proposal document. That means that there are lots of reviewers for each workflow, even when the section in which a particular reviewer is interested has not changed since the last time the approval workflow was run (see above comment on versioning). This means that the reviewer is wasting his/her time needlessly looking over a 400-page document. Additionally since the workflow is running at the scope of the entire 400-page proposal, it is difficult to focus the reviewers' comments on particular sections or even to make it clear to the reviewers which sections have actually changed since the last review. If each section were a separate file, you could easily run smaller, focused workflows on just the sections that have significant changes, before running one final workflow on the completed proposal.
Security: Extending the example of the proposal even further, let's say you now have two sub contractors helping to create the proposal. You want the subs to help create portions of the technical approach. However, you do not want either of the subs to see the other’s work as it contains competitive information. Further, you don't want either of the subs to see the pricing section, since that contains your markup over their rates. There is no way to give each sub contractor access to their proper proposal sections without also granting them access to the entire proposal, as all of the sections are stored in the same file. A content manager couldeasily secure each section of the proposal individually if the proposal were stored in a multi-file format.
What else can Multi-file Documents Do?
These are just some quick notes. We have a white paper that talks about many usage scenarios made possible with multi-file documents here:
Labels:
Document Management,
MOSS,
SharePoint,
SharePoint 2010,
SharePoint Foundation,
WSS
Microsoft Silverlight 4 and SharePoint 2010 Integration (book review)
SharePoint 2010 comes with native support for Silverlight allows you to create rich Internet applications (RIA) is easier and faster. And while Silverlight has been around for some years more to develop RIA Silverlight in SharePoint 2010. While you could use the classic - the approach of Web services based on SharePoint 2010 comes with the Silverlight object model that makes it easy to work with data in SharePoint Silverlight applications
Microsoft Silverlight and SharePoint 2010 Integration four book covers the basics of developing Silverlight applications in SharePoint 2010 platform. The book begins with an overview of what Silverlight is and what the integration capabilities provided by SharePoint 2010 is as follows: it is all supported with easy to follow samples. Over the next few chapters of the book deals with the integration capabilities in more detail and focus on different parts such as Silverlight Object Model, Business Connectivity Services (BCS) and SharePoint Data Services.
Although the book targets developers who have previous SharePoint experience it provides in-depth explanation of new capabilities of SharePoint 2010, so if you haven’t done that much with the newest version of SharePoint, you won’t feel lost. The detailed explanation of different pieces of the sample solutions makes it easy to learn from the examples and the clear chapter structure makes it possible to skip the pieces that you are already familiar with.
Since the book covers basic SharePoint and Silverlight development is not really suitable for beginner developers. Have an understanding of the impact of development on both platforms, display, before you start reading this book. 4 On the other hand, Microsoft Silverlight and SharePoint integration, the book covers advanced topics such as removing data from the user interface level or to discuss the distribution capabilities Various Silverlight applications in SharePoint 2010, and when to use which is what that the book does not make much developers. In fact, it is a book that provides an overview of the average level of how you can use Silverlight4 to create four RIA SharePoint in early 2010.
Microsoft Silverlight4 and SharePoint 2010 Integration is an interesting and readable book that explains the new features of SharePoint 2010 to create rich Internet applications using Silverlight in April. It provides insight into both SharePoint 2010 and Silverlight in April and is a good starting point to explore more advanced topics RIA. If you are interested in taking advantage of Silverlight to create rich applications on the SharePoint platform in 2010 but have not done much with Silverlight, however, is a book to read.
Saturday, September 4, 2010
VSeWSS:CTP of Visual Studio 2008 extensions for SharePoint v1.3
Finaly! A version 64-bit of VS 2008 Extensions for SharePoint is out, in a form of a CTP. Yes, that means we can now develop on x64 servers as well :)
CTP 1.3 brings some new features as well:
It can be installed on computers running SharePoint Server x64 x64 OS. Previously, only single x86 server could be used.
building separate commands for the package, deploy and retract is added
The command line build together and take control is continuous integration and build servers. Old command line build SharePoint projects have been very difficult
refactoring support to rename Web Parts. Earlier rename a web part changes needed in several files in the project
See WSP improvements in the consistency of the delete function, functions merge and add event sinks for the characteristics
Solution Generator to create solutions to publish the sites now. Previously, only sites on a regular basis can be achieved
BIN allow partial trust deployment of Web Parts. CAS settings must still be provided by the developer.
new product design project SharePoint Root File itemsr.
The deployment now delete any existing functions in the contradictory development server before redistribution. Previously, the function name conflicts occur error
Auxiliary gatherings such as business logic can now be added to the solution SharePoint WSP
Hidden Features in the proposed definition of site is now shown in WSP View. They are no longer hidden
For advanced users a quick insert is included to update the compiled assembly on SharePoint Development Setup
The User Guide is now installed with the extensions instead of being a separate download
The final release of VSeWSS 1.3 is planned for the North American Spring of 2009.
You can download CTP from Microsoft Connect:
Wednesday, August 25, 2010
Public Sector DPE presents Microsoft Visual Studio 2010 Webcasts
We will offer two types of webcasts on Microsoft Visual Studio 2010, each repeating monthly September through December 2010:
o Overview of Visual Studio 2010
Visual Studio 2010 is a powerful IDE that ensures quality code. Visual Studio 2010 is packed with new and enhanced features that simplify the entire development process from design to deployment. Customize your workspace with multiple monitor support. Create rich applications for SharePoint and the Web. Target multiple versions of the .NET Framework with the same tool. Eliminate the dreaded "no repro" problem with IntelliTrace. Come find out more...
o Feature Demonstration of Microsoft Visual Studio
During this webcast, we will provide a demonstration of technical functionalities and feature capabilities of the following:
1. Test Professional for Tester/Load Testing
2. Test & Lab management
3. Team Foundation Server – Version Control, Work Items, Reporting services
REGISTER TODAY using the links below!
Overview of Visual Studio 2010
Feature Demonstration of Microsoft Visual Studio
Tuesday, August 24, 2010
SharePoint 2010 Silverlight Client Object Model - How to use
As part of the introduction series, I want to present the advantage of theclient object modelintroduced in SharePoint 2010. There are great advantages with this model as it don't require SharePoint needs to be installed on the client machine. We just need to refer the client dlls which Microsoft SharePoint provides and based on them we will write code to communicate with SharePoint server. In this article we will go through Silverlight Client Object Model. If you want to know the other client object model types go here. ECMAScript and Managed client object models.
To communicate with the SharePoint server in Silverlight context we need to give two client SharePoint DLL references to the silver light project.DLL's Needed: Microsoft.SharePoint.Client.Silverlight.dll and Microsoft.SharePoint.Client.Silverlight.Runtime.dll. They can be found at "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\ClientBin".OK, we understand the concept and we will create a project and implement code for better understanding on how it works.
- Open Visual Studio 2010.
- File -> New -> Project -> Visual C# -> Silverlight -> Select Silverlight Application project template as shown below.
- Give some name to the project. In my example, I have given some meaningful name like "SP2010Silverlight_HelloWorld" and create the project.
- Now, you see the below screen.
- What this meaning is "Do you want to create an ASP.NET web site and host the XAP file generated to the web site". For our example, it's really not needed. But, there is no problem by using that.
- Now next step is getting the SharePoint Silverlight Client Dll's reference to our project. So, for this get the SharePoint dll's to the client machine [Where we created project] and paste the DLL's in some safe location. I copied them to C:\SP2010_ClientDLL\.
- Now, go to Visual Studio 2010 project right click on project -> select References and browse to location where client dll's copied and select both dll's and hit ok as shown in below figure.
- After you added all references the references folder should look like this.
- Now we are ready with all prerequisites and part left is with writing code. I will show you simple code on how to write the code for getting web site title and description using Silverlight Client OM.
- Before start coding, we need to add reference to the namespace in page by declaring using keyword as shown below.using Microsoft.SharePoint.Client;
- This is the code to get data from a SharePoint server, in this example we are retrieving Title and Description of a web site.
XAML code: MainPage.XAML
MainPage.Xaml.cs file code:using System;using System.Collections.Generic;using System.Linq;using System.Net;using System.Windows;using System.Windows.Controls;using System.Windows.Documents;using System.Windows.Input;using System.Windows.Media;using System.Windows.Media.Animation;using System.Windows.Shapes;using Microsoft.SharePoint.Client;
namespace SP2010Silverlight_HelloWorld{ public partial class MainPage : UserControl { public MainPage() { InitializeComponent(); }
private ClientContext context = null; private Web web = null; private delegate void UpdateUIMethod();
private void btnLoadSite_Click(object sender, RoutedEventArgs e) { context = ClientContext.Current; web = context.Web; context.Load(web, w => w.Title, w => w.Description, w => w.ServerRelativeUrl); context.ExecuteQueryAsync(OnSiteLoadSuccess, OnSiteLoadFailure); }
private void OnSiteLoadSuccess(object sender, ClientRequestSucceededEventArgs e) { UpdateUIMethod updateUI = LoadSiteData; this.Dispatcher.BeginInvoke(updateUI); } private void OnSiteLoadFailure(object sender, ClientRequestFailedEventArgs e) { MessageBox.Show("Request Failed: " + e.Message + ", Stack Trace:" + e.StackTrace); }
private void LoadSiteData() { canvasLabels.Visibility = System.Windows.Visibility.Visible; label2.Content = web.Title; label4.Content = web.ServerRelativeUrl; label6.Content = web.Description; } }}Place all the code above given in the both files of your project. Note: Remember to change the web url given in the code "http://nb16" to actual SharePoint server url.
Till now, what we have done is, writing and complete code for loading the site data. But, we need to understand the above code.In the above code, there is a callback function used. Which is asynchronous and loads data. But, you may confuse at the line delegate UpdateUIMethod(). I copied the below text from MSDN to better understand about the delegate and why it's needed.
"Because query execution is asynchronous when you use the SharePoint Foundation Silverlight object model, you must pass delegates for callback methods as parameters in theExecuteQueryAsync(ClientRequestSucceededEventHandler, ClientRequestFailedEventHandler) method, similarly to query execution in the ECMAScript object model. However, to run code that makes changes in the user interface (UI) through the Silverlight object model, you must delegate this work to the Dispatcher object of the thread that created the UI by calling BeginInvoke()". So, we should use the delegate to make changes on the UI.
Deploy and Test We have two ways to deploy the XAP file in SharePoint environment.One is, We can use SharePoint default location [\Templates\Layouts\ClientBin] and deploy the file there. Refer this location from the Silverlight web part.Second is, We can use a SharePoint document library and deploy the file there. Refer this document library location file path while adding the silverlight web part. In this post, we will use the default location to deploy and test.
- To deploy and test the code in SharePoint 2010 we need to use the SharePoint Silverlight web part [New web part added in this version].
- The silverlight web part default location is "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\ClientBin". So, all the XAP files should be deployed to this location to use them in the silverlight web part.
- To make this process easier, we need to do below.
- Right click on Silverlight project -> propertiese -> Build -> change the output path to "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\ClientBin" as shown below.
- Build the solution and see the XAP generated in the ClientBin location.
- Now, navigate to SharePoint site where you want to see the silverlight data, Edit page.
- Add silverlight web part to the page.
- It will prompt you for the XAP file location: Type the url: "/_layouts/ClientBin/SP2010Silverlight_HelloWorld.xap".
- Now click on OK and you can see the silverlight web part on the page.
Ooh!!! This is it!!! We are done with development, deployment and testing. Hope this won't create any confusion. If you have any issues please let me know. I am always here to help you out..
Subscribe to:
Posts (Atom)