12/27/2011

12/25/2011

SharePoint 2010 Developer Roadmap Hands-On Lab Virtual Machine

SharePoint 2010 Developer Roadmap Hands-On Lab Virtual Machine
Hey Guys,

If you are starting your career as SharePoint 2010 Developer, you should definitely complete the SharePoint 2010 Developer Training Course.

While learning the course, you might have seen SharePoint 2010 Developer Roadmap Hands-on Labs which talks about some doing hands-on on some Virtual Machines, but  no where is the refrence to where to find or how to use the VM.

Finally, I also found the labs which were designed to use the Information Worker Virtual Machine located here http://bit.ly/9ixFq3 on the MSDN download center.

Below is the video which will help understanding how to set up the Virtual Machines.

Setting Up a SharePoint Developer Virtual Machine







 

Thanks & Have Fun!!

12/06/2011

SharePoint 2010 Enterprise Search Training

SharePoint 2010 Enterprise Search Training

SharePoint 2010 Enterprise Search Training



















































Thanks & Have Fun!!

11/24/2011

jQueryPad - Paul Stovell

jQueryPad - Paul Stovell
jQueryPad







Download

jQueryPad screenshot

jQueryPad is xcopy deployable. It's written in WPF and uses the Web Browser Control to embed Internet Explorer for testing the script. When you press F5, the HTML and JavaScript are combined into one file and rendered. The template also references jQuery, so the jQuery functions are available.

If you want to use a different version of jQuery or reference other files, just replace the files in the Templates directory.

Hope you find it useful - feature suggestions are welcome.


Source : http://www.paulstovell.com/jquerypad

 




11/15/2011

How To : Add XML Attribute To An Existing XML Node in C# (C Sharp)

How To : Add XML Attribute To An Existing XML Node in C# (C Sharp)
Hey Folks,

I had requirement where I needed to add an XML Attribute to an existing XML Node.

Say for example I have an XML file as below :

XML Code :
<xml>
<User Name="Naimish" Country="India" Mobile="0123456789" UserExits="Yes" />
<User Name="Vishal" Mobile="0123456788" UserExits="Yes" />
<User Name="Lucky" Country="India" Mobile="0123456787" UserExits="Yes" />
<User Name="Ravi" Mobile="0123456786" UserExits="Yes" />
<User Name="XYZ" Country="India" Mobile="0123456785" UserExits="Yes" />
</xml>

Now, If you notice, User Vishal and User Ravi don't have an attribute Country, so If you want to add that attribute pro-grammatically using C# or C Sharp Code, here's how you go :

C# / C Sharp Code :
      
class AddAttributesToXML
{
static void Main(string[] args)
{
if (File.Exists("C:\\Test.xml"))
{
XmlDocument XDoc = new XmlDocument();
XDoc.Load("C:\\Test.xml");
XDoc.InnerXml = AddAttributesToXML(XDoc.OuterXml);
XDoc.Save("C:\\Test.xml");
}
}

private static string AddAttributesToXML(String inputXml)
{
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.LoadXml(inputXml);

XmlNodeList xmlNodeList = xmlDoc.GetElementsByTagName("User");

foreach (XmlNode xmlNode in xmlNodeList)
{
try
{
if (xmlNode.Attributes.GetNamedItem("Country").Value == null) { }
}
catch (Exception)
{
XmlAttribute CountryAttr = xmlDoc.CreateAttribute("Country");
CountryAttr.Value = "USA";
xmlNode.Attributes.Append(CountryAttr);
}
}

return xmlDoc.OuterXml;
}
}

Thanks and Have Fun!!!!!

10/29/2011

URL of Web Part Maintenance Page in SharePoint 2010

URL of Web Part Maintenance Page in SharePoint 2010
Hey Folks,

While learning SharePoint 2010, I do lots of mistakes which crashes my SharePoint 2010 Home Page.

I do add weird web parts which causes the problem.

The easiest way to get rid of this is to just delete the web part form your page and to do it you need to go to the Web Part Maintenance Page of SharePoint 2010.

Do you know from where or how to go??

If yes, good you are a pro!!

If No, Welcome To My World :)

Suppose your Home Page Site URL is :

http://nick-pc/

When you enter into the address bar of your browse, you get below full URL :

http://nick-pc/SitePages/Home.aspx

What you need to do to go to the Web Part Maintenance Page of SharePoint 2010 is just append, ?contents=1

http://nick-pc/SitePages/Home.aspx?contents=1

And you are there :D

Thanks and Have Fun!!!!!

10/05/2011

How To : HyperLink Column in SPGridView for SharePoint 2010

How To : HyperLink Column in SPGridView for SharePoint 2010
Below is the code :

 

using System;

using System.ComponentModel;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Web.UI.WebControls.WebParts;

using Microsoft.SharePoint;

using Microsoft.SharePoint.WebControls;

using System.Data;

 

namespace VisualWebPartProject5.VisualWebPart1

{

[ToolboxItemAttribute(false)]

public class VisualWebPart1 : WebPart

{

protected override void CreateChildControls()

{

GridView gview = new GridView();

SPList list = SPContext.Current.Web.Lists["Projects"];

SPQuery query = new SPQuery();

 

query.Query = "<OrderBy><FieldRef Name=\"Project\" Ascending=\"True\"/></OrderBy>";

 

query.ViewFields = "<FieldRef Name=\"Project\" Nullable=\"TRUE\" /><FieldRef Name=\"Client\" Nullable=\"TRUE\" /><FieldRef Name=\"URL\"

 

Nullable=\"TRUE\" />";

 

query.ViewFieldsOnly = true;

 

SPListItemCollection lic = list.GetItems(query);

 

DataTable dt = lic.GetDataTable();

 

dt.Columns.Add("Temp", typeof(string));

 

foreach (DataRow r in dt.Rows)

{

r["Temp"] = r["URL"];

}

 

gview.DataSource = dt;

 

HyperLinkField linkField = new HyperLinkField();

linkField.HeaderText = "Text";

linkField.DataTextField = "Project";

linkField.DataNavigateUrlFields =new string[] { "Temp"};

linkField.Target = "_blank";

gview.Columns.Add(linkField);

gview.DataBind();

this.Controls.Add(gview);

 

}

}

}

 

10/03/2011

Hyperlink Column Type in SharePoint 2010 : How to open in new window?

Hyperlink Column Type in SharePoint 2010 : How to open in new window?
Hey Folks!!

Recently I have created a custom list.  Into my custom list, I had one column which was of type Hyperlink.

I added my new custom list as a web part.  Works just fine!!  I had 4-5 URLs in my custom list or web part.

When I clicked on one of the URL....Woha!!!!

Instead of opening the URL in new window, it just opened in same page??!!

I went back to edit my column type, but I couldn't found the way or option to ask it to open any URLs into new window.

I googled it but again I found very complex and an un-easy way to achieve the same.

I wanted something pretty straight forward and easy to use and I think you too will expect the same right?

So, Let's Go :)

Steps :

1. Go to list

2. Site Actions -> Edit in SharePoint Designer

3. In Navigation....Select All Files -> Lists -> Click on your list name -> AllItems.aspx

4. Click on any of the URLs

5. Tag Properties change "target" Value from _self to _blank (If you can't see this, follow the below steps)

6. Click on the link and the click on ">" to display Common xsl:value-of Tasks

7. Click on Hyperlink options...

8. Click "Yes" if its a trusted environment. message

9. Click "Target Frame..." button

10. Select "New Window"

11. Click OK Twice.

12. If this is not setting the target value to _blank then edit the tag in code

Click Save, Refresh your SharePoint 2010 Page and click on any of the URLs :) It's done!!

<a href="{$url}"><xsl:value-of select="$desc" /></a>

How To : Programmatically Create A Custom List in SharePoint 2010 using Visual Studio 2010

How To : Programmatically Create A Custom List in SharePoint 2010 using
Visual Studio 2010
Let's  create a Candidates List in SharePoint 2010 using Visual Studio 2010:

A list will be having following columns:

1. Title

2. Name

3. Home City

And then we'll add rows into it programmatically.

Steps :

1. Open Visual Studio 2010 -> File -> New Project -> Visual C# (You may choose Visual Basic) -> SharePoint -> 2010

1.1     Deploy it on Farm Level

2.  Select List Definition as Project Type, give a proper name to your List Definition and press OK.

3.  In Solution Explorer, you will see few files listed automatically by Visual Studio 2010 itself.

4.  We need to look into below files :

1. ListDefinition1 -> ListInstance1 -> Elements.xml

2. ListDefinition1 -> Elements.xml

3. ListDefinition1 -> Schema.xml

5.  First, let's start with ListDefinition1 -> ListInstance1 -> Elements.xml

Change the ListIntance as below :
<?xml version="1.0" encoding="utf-8"?>

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">

  <ListInstance Title="SampleList1"

                OnQuickLaunch="TRUE"

                TemplateType="10001"

                Url="Lists/SampleList1-ListInstance1"

                Description="My List Instance">

    <Data>

      <Rows>

        <Row>

          <Field Name ="Title">Mr</Field>

          <Field Name ="Name">Naimish</Field>

          <Field Name="HomeCity">Las Vegas</Field>

        </Row>

        <Row>

          <Field Name ="Title">Mr</Field>

          <Field Name="Name">Vishal</Field>

          <Field Name="HomeCity">New York</Field>

        </Row>

        <Row>

          <Field Name ="Title">Mr</Field>

          <Field Name="Name">Vijay</Field>

          <Field Name="HomeCity">Chicago</Field>

        </Row>

      </Rows>

    </Data>

  </ListInstance>

</Elements>

6.  Change ListDefinition1 -> Elements.xml

 

Please note that Field IDs will be different for your project. To generate your Field IDs (GUID), In Visual Studio 2010, Go To Tools -> Create GUID



<?xml version="1.0" encoding="utf-8"?>

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">

<Field ID="{E9C12CCA-26E4-47CA-A388-8959C11CDD13}" Name="Title" Type="Note" DisplayName="Title" Required="FALSE" ></Field>

<Field ID="{64B80007-B8AD-4312-B4CA-ADF57500EBF8}" Name="Name" Type="Note" DisplayName="Name" Required="FALSE" ></Field>

<Field ID="{AAABDB73-F548-4D79-AED7-4BE42B9A05C3}" Name="HomeCity" Type="Note" DisplayName="HomeCity" Required="FALSE" ></Field>

<ContentType

ID="0x01004d360004c8074de6a25f4d8cdd3be8dd"

Name="SimpleList1"

Group="Custom Content Type"

Description="SimpleList1"

Version="0">

<FieldRefs>

<FieldRef ID="{E9C12CCA-26E4-47CA-A388-8959C11CDD13}"/>

<FieldRef ID="{64B80007-B8AD-4312-B4CA-ADF57500EBF8}"/>

<FieldRef ID="{AAABDB73-F548-4D79-AED7-4BE42B9A05C3}"/>

</FieldRefs>

</ContentType>

<!-- Do not change the value of the Name attribute below. If it does not match the folder name of the List Definition project item, an error will occur when the project is run. -->

<ListTemplate

Name="ListDefinition1"

Type="10001"

BaseType="0"

AllowDeletion="FALSE"

DisallowContentTypes="FALSE"

OnQuickLaunch="FALSE"

SecurityBits="11"

Sequence="410"

DisplayName="SampleList1"

Description="My List Definition"

Image="/_layouts/images/itgen.png"/>

</Elements>

7. ListDefinition1 -> Schema.xml

<?xml version="1.0" encoding="utf-8"?>

<List xmlns:ows="Microsoft SharePoint" EnableContentTypes="TRUE" Title="SampleList1" FolderCreation="FALSE" Direction="$Resources:Direction;" Url="Lists/SampleList1-ListDefinition1" BaseType="0" xmlns="http://schemas.microsoft.com/sharepoint/">

<MetaData>

<ContentTypes>

<ContentTypeRef ID ="0x01004d360004c8074de6a25f4d8cdd3be8dd"></ContentTypeRef>

<ContentTypeRef ID="0x01">

<Folder TargetName="Item" />

</ContentTypeRef>

<ContentTypeRef ID="0x0120" />

</ContentTypes>

<Fields>

<Field ID="{E9C12CCA-26E4-47CA-A388-8959C11CDD13}" Name="Title" Type="Note" DisplayName="Title" Required="FALSE" ></Field>

<Field ID="{64B80007-B8AD-4312-B4CA-ADF57500EBF8}" Name="Name" Type="Note" DisplayName="Name" Required="FALSE" ></Field>

<Field ID="{AAABDB73-F548-4D79-AED7-4BE42B9A05C3}" Name="HomeCity" Type="Note" DisplayName="HomeCity" Required="FALSE" ></Field>

</Fields>

<Views>

<View BaseViewID="0" Type="HTML" MobileView="TRUE" TabularView="FALSE">

<Toolbar Type="Standard" />

<XslLink Default="TRUE">main.xsl</XslLink>

<RowLimit Paged="TRUE">30</RowLimit>

<ViewFields>

<FieldRef Name="LinkTitleNoMenu"></FieldRef>

</ViewFields>

<Query>

<OrderBy>

<FieldRef Name="Modified" Ascending="FALSE"></FieldRef>

</OrderBy>

</Query>

<ParameterBindings>

<ParameterBinding Name="AddNewAnnouncement" Location="Resource(wss,addnewitem)" />

<ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />

<ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_ONET_HOME)" />

</ParameterBindings>

</View>

<View BaseViewID="1" Type="HTML" WebPartZoneID="Main" DisplayName="$Resources:core,objectiv_schema_mwsidcamlidC24;" DefaultView="TRUE" MobileView="TRUE" MobileDefaultView="TRUE" SetupPath="pages\viewpage.aspx" ImageUrl="/_layouts/images/generic.png" Url="AllItems.aspx">

<Toolbar Type="Standard" />

<XslLink Default="TRUE">main.xsl</XslLink>

<RowLimit Paged="TRUE">30</RowLimit>

<ViewFields>

<FieldRef Name="Attachments"></FieldRef>

<FieldRef Name="LinkTitle"></FieldRef>

</ViewFields>

<Query>

<OrderBy>

<FieldRef Name="ID"></FieldRef>

</OrderBy>

</Query>

<ParameterBindings>

<ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />

<ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_DEFAULT)" />

</ParameterBindings>

</View>

</Views>

<Forms>

<Form Type="DisplayForm" Url="DispForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />

<Form Type="EditForm" Url="EditForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />

<Form Type="NewForm" Url="NewForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />

</Forms>

</MetaData>

</List>

And Done :) Refresh your SharePoint 2010 site!!

That's it!!

Though I have tried my best to explain it in as simple way was possible, I would highly recommend to go and read Ben Hedges article on Creating SharePoint 2010 List Definitions in Visual Studio 2010.

10/01/2011

Microsoft Visual Studio 2010 Bug : SharePoint List Definition Project Invalid Schema.xml

Microsoft Visual Studio 2010 Bug : SharePoint List Definition Project
Invalid Schema.xml
Surprised!!!!!

I wanted to simple create a custom list in SharePoint 2010, using Visual Studio 2010.

Stpes :

1. Open Visual Studio 2010

2. Got To File -> New -> Project

3. Select Visual C# (I selected C#, you may select VB.NET) -> SharePoint -> 2010

4. Select Project Type as List Definition

5. Give some name to your project and select OK.

6. Enter your SharePoint site URL to validate and deploy the solution as farm solution, click Next

7. Give some name to your List Definition

8. Select Custom List as type of the List Definition

9. Click on Finish

10. Visual Studio 2010 will list down few of the files (see in solution explorer).

11. Build The Project.

12. You will get below warnings:

Warning 1 The element 'View' in namespace 'http://schemas.microsoft.com/sharepoint/' has invalid child element 'ParameterBindings' in namespace 'http://schemas.microsoft.com/sharepoint/'. List of possible elements expected: 'ViewFooter, GroupByHeader, ViewEmpty, Xsl, PagedRecurrenceRowset, RowLimitExceeded, ViewData, ViewBody, PagedClientCallbackRowset, ViewStyle, ViewHeader, PagedRowset, Method, GroupByFooter' in namespace 'http://schemas.microsoft.com/sharepoint/'. c:\users\xxx\documents\visual studio 2010\Projects\ListDefinitionProject2\ListDefinitionProject2\ListDefinition1\Schema.xml 44 10 ListDefinitionProject2 

Warning 2 The 'Default' attribute is not declared. c:\users\xxx\documents\visual studio 2010\Projects\ListDefinitionProject2\ListDefinitionProject2\ListDefinition1\Schema.xml 54 18 ListDefinitionProject2

Warning 3 The element 'View' in namespace 'http://schemas.microsoft.com/sharepoint/' has invalid child element 'ParameterBindings' in namespace 'http://schemas.microsoft.com/sharepoint/'. List of possible elements expected: 'ViewFooter, ViewFields, GroupByHeader, Query, ViewEmpty, Xsl, PagedRecurrenceRowset, RowLimitExceeded, ViewData, ViewBody, PagedClientCallbackRowset, ViewStyle, ViewHeader, PagedRowset, Method, GroupByFooter' in namespace 'http://schemas.microsoft.com/sharepoint/'. c:\users\xxx\documents\visual studio 2010\Projects\ListDefinitionProject2\ListDefinitionProject2\ListDefinition1\Schema.xml 56 10 ListDefinitionProject2

 Warning 4 The element 'View' in namespace 'http://schemas.microsoft.com/sharepoint/' has invalid child element 'ParameterBindings' in namespace 'http://schemas.microsoft.com/sharepoint/'. List of possible elements expected: 'ViewFooter, ViewFields, GroupByHeader, ViewEmpty, Xsl, PagedRecurrenceRowset, RowLimitExceeded, ViewData, ViewBody, PagedClientCallbackRowset, RowLimit, ViewStyle, ViewHeader, PagedRowset, Method, GroupByFooter' in namespace 'http://schemas.microsoft.com/sharepoint/'. c:\users\xxx\documents\visual studio 2010\Projects\ListDefinitionProject2\ListDefinitionProject2\ListDefinition1\Schema.xml 92 10 ListDefinitionProject2

Below is full Schema.xml file :

<?xml version="1.0" encoding="utf-8"?>
<List xmlns:ows="Microsoft SharePoint" Title="ListDefinitionProject3 - ListDefinition1" FolderCreation="FALSE" Direction="$Resources:Direction;" Url="Lists/ListDefinitionProject3-ListDefinition1" BaseType="0" xmlns="http://schemas.microsoft.com/sharepoint/">
<MetaData>
<ContentTypes>
<ContentTypeRef ID="0x0104">
<Folder TargetName="Announcement" />
</ContentTypeRef>
<ContentTypeRef ID="0x0120" />
</ContentTypes>
<Fields>
<Field ID="{7662cd2c-f069-4dba-9e35-082cf976e170}" Type="Note" RichText="TRUE" RichTextMode="FullHtml" IsolateStyles="TRUE" NumLines="15" Name="Body" DisplayName="$Resources:core,camlid2;" Sortable="FALSE" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="Body"></Field>
<Field ID="{6a09e75b-8d17-4698-94a8-371eda1af1ac}" Type="DateTime" Name="Expires" DisplayName="$Resources:core,camlid3;" Format="DateOnly" FromBaseType="TRUE" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="Expires"></Field>
</Fields>
<Views>
<View BaseViewID="0" FreeForm="TRUE" Type="HTML" MobileView="TRUE" TabularView="FALSE">
<Toolbar Type="Standard" />
<XslLink>main.xsl</XslLink>
<Query>
<Where>
<Or>
<IsNull>
<FieldRef Name="Expires" />
</IsNull>
<Geq>
<FieldRef Name="Expires"></FieldRef>
<Value Type="DateTime">
<Today></Today>
</Value>
</Geq>
</Or>
</Where>
<OrderBy>
<FieldRef Name="Modified" Ascending="FALSE"></FieldRef>
</OrderBy>
</Query>
<ViewFields>
<FieldRef Name="LinkTitleNoMenu" Explicit="TRUE"></FieldRef>
<FieldRef Name="Body" Explicit="TRUE"></FieldRef>
<FieldRef Name="Author" Explicit="TRUE"></FieldRef>
<FieldRef Name="Modified" Explicit="TRUE"></FieldRef>
<FieldRef Name="Attachments" Explicit="TRUE"></FieldRef>
</ViewFields>
<RowLimit>5</RowLimit>
<ParameterBindings>
<ParameterBinding Name="NoAnnouncements" Location="Resource(wss,NoAnnouncements)" />
<ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,NoAnnouncementsHowTo)" />
<ParameterBinding Name="AddNewAnnouncement" Location="Resource(wss,idHomePageNewAnnounce)" />
<ParameterBinding Name="MoreAnnouncements" Location="Resource(wss,MoreAnnouncements)" />
<ParameterBinding Name="ByText" Location="Resource(wss,2000)" />
</ParameterBindings>
</View>
<View BaseViewID="1" Type="HTML" WebPartZoneID="Main" DisplayName="$Resources:core,camlid4;" DefaultView="TRUE" MobileView="True" MobileDefaultView="True" SetupPath="pages\viewpage.aspx" ImageUrl="/_layouts/images/announce.png" Url="AllItems.aspx">
<Toolbar Type="Standard" />
<XslLink Default="TRUE">main.xsl</XslLink>
<RowLimit Paged="TRUE">30</RowLimit>
<ParameterBindings>
<ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
<ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_DEFAULT)" />
</ParameterBindings>
<ViewFields>
<FieldRef Name="Attachments"></FieldRef>
<FieldRef Name="LinkTitle"></FieldRef>
<FieldRef Name="Modified"></FieldRef>
</ViewFields>
<Query>
<OrderBy>
<FieldRef Name="Modified" Ascending="FALSE"></FieldRef>
</OrderBy>
</Query>
</View>
<View BaseViewID="3" FreeForm="TRUE" Type="HTML" TabularView="FALSE">
<Toolbar Type="Standard" />
<XslLink>main.xsl</XslLink>
<Query>
<Where>
<Or>
<IsNull>
<FieldRef Name="Expires" />
</IsNull>
<Geq>
<FieldRef Name="Expires"></FieldRef>
<Value Type="DateTime">
<Today></Today>
</Value>
</Geq>
</Or>
</Where>
<OrderBy>
<FieldRef Name="Modified" Ascending="FALSE"></FieldRef>
</OrderBy>
</Query>
<ParameterBindings>
<ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
<ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_DEFAULT)" />
</ParameterBindings>
<ViewFields>
<FieldRef Name="LinkTitleNoMenu" Explicit="TRUE"></FieldRef>
<FieldRef Name="Body" Explicit="TRUE"></FieldRef>
<FieldRef Name="Author" Explicit="TRUE"></FieldRef>
<FieldRef Name="Modified" Explicit="TRUE"></FieldRef>
<FieldRef Name="Attachments" Explicit="TRUE"></FieldRef>
</ViewFields>
<RowLimit>3</RowLimit>
</View>
</Views>
<Forms>
<Form Type="DisplayForm" Url="DispForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
<Form Type="EditForm" Url="EditForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
<Form Type="NewForm" Url="NewForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
</Forms>
<DefaultDescription>$Resources:onetid10;</DefaultDescription>
</MetaData>
</List>
 
I have submitted this bug at Microsoft -> https://connect.microsoft.com/VisualStudio/feedback/details/692514/microsoft-visual-studio-2010-bug-sharepoint-list-definition-project-invalid-schema-xml
 

9/17/2011

Learning SharePoint 2010 Step By Step

Learning SharePoint 2010 Step By Step

SharePoint 2010 Training courses Links List!!

SharePoint 2010 Training courses Links List!!

Take SharePoint Server 2010 training at your desk




Article Discover how Microsoft SharePoint Server 2010 can change the way that you work by taking these free, online training courses from Microsoft. These courses...




Download Office 2010 training




Article Get free, downloadable versions of many Office 2010 training courses. They’re in PowerPoint 2010 format, so you can customize them for group training or...




Make the switch to the SharePoint 2010 user interface




Training You’re used to working with SharePoint team sites, but your organization has just upgraded to Microsoft SharePoint Foundation 2010 or Microsoft SharePoint...




Share information in a central place




Training This course shows you how to create, edit, and find your way around SharePoint sites. It also shows you how to use blogs and wikis to share your knowledge.




Collaborate on documents and projects more efficiently




Training Learn how to use calendars, have multiple people simultaneously author documents, take documents offline and reconnect using SharePoint Workspace, and manage...




Manage documents and content in Microsoft SharePoint Server 2010




Training Learn about the new and updated document management features in SharePoint Server 2010, including Document Sets, ratings, Document IDs, Digital Asset Management...




Introduction to Web Content Management




Training This course provides an introduction to designing and authoring structured content pages on a publishing site using an approval workflow.




My Sites: Connecting to people and information




Training Show users how to make useful connections with people and content by using their My Site, social tagging, and related features. The emphasis will be on...




Introduction to Records Management and Compliance




Training This training course will introduce you to some of the new and improved records management and compliance features in Microsoft SharePoint Server 2010....




Quickly find the resources you need to get your job done




Training Learn how SharePoint Server 2010 search has been improved to help you quickly find the documents you need.




Make Better Business Decisions




Training Learn how to use a PerformancePoint dashboard to analyze potential business concerns, such as profitability, and then share information and recommendations...




SharePoint lists I: An introduction




Training Lists are key to your SharePoint site. Teams use lists to gather, track and share information in a Web browser. Take this course to get the basics of lists.




SharePoint lists II: Create and work with different lists




Training This course shows you how to create lists, calendars, discussion boards. It also explains how to group items, and set e-mail alerts.




SharePoint lists III: Create a list based on a spreadsheet




Training Learn how turn your spreadsheet into a SharePoint list: Import a spreadsheet; clean up the list so it’s easy to use; create useful views for the new list.




SharePoint lists IV: Create a custom list




Training This course shows you how to create a custom list with special columns that you define.




SharePoint lists V: Techniques for managing large lists




Training Training course on managing large SharePoint lists. Learn how to deal with errors: “Exceeds the list view threshold” “Displaying the newest results below.”




SharePoint lists VI: Exciting ways to display your list data




Training Display list data using simple web parts, chart web parts, text filter web parts. Learn tips on how to set up chart web parts.




SharePoint lists VII: Handy tips and tricks




Training Learn tips and tricks for SharePoint 2010 lists.




SharePoint pages I: An introduction




Training Get an introduction to the concept of pages on a SharePoint 2010 team site. Learn what types of pages are changeable and how to begin editing content.




SharePoint pages II: Work with wiki pages




Training Learn how to create wiki pages on a team site, and work with editing tools to format text and layout, and insert links, media, and Web Parts.




Build and publish web databases




Training Overview This course explains how to create and publish an Access 2010 web database that runs on SharePoint 2010 . You’ll also learn how to save a changed...




Getting started with SharePoint Server 2010




Article If you know SharePoint Server 2010, used an earlier version of SharePoint, or have never used SharePoint before, exp lore these resources to begin learning...




SharePoint document libraries I: An introduction




Training Wondering how to use Word with SharePoint? Excel with SharePoint? How about PowerPoint and OneNote with SharePoint? Use a SharePoint document library. This...




SharePoint document libraries II: Organize and configure a library




Training Create folders and site columns for a SharePoint 2010 document library. Also, set up version history, and give permissions to people so that they can access...

Source : http://office.microsoft.com/en-us/sharepoint-server-help/CH010372432.aspx?tl=3

Thanks and Have fun!!!!!


SharePoint 2010 Learning Videos Links List!!

SharePoint 2010 Learning Videos Links List!!
Here we go.....

Video: Ribbon highlights In SharePoint 2010




Video The ribbon is a new command interface that brings many SharePoint controls out from hiding and onto the page where they can do the most good. Similar to...




Video: Use breadcrumbs to find your way through a SharePoint site




Video When you’re lost on a SharePoint site, you can use breadcrumbs to see where you are in the site hierarchy or to go back up the tree to another level. SharePoint...




Video: Overview of PerformancePoint dashboard elements




Video Take a tour of a PerformancePoint dashboard and its various elements. Learn about Web Parts, filters, page navigation, and report types. See how you can...




Video: Explore data in PerformancePoint reports and scorecards




Video Learn how to investigate data in PerformancePoint reports and scorecards by using the various menu options, filters, and drilling techniques.




Video: Use the Quick Launch pane to find PerformancePoint dashboards and dashboard items




Video Learn how to use the Quick Launch pane on a SharePoint site to find PerformancePoint dashboards and dashboard items. The Quick Launch pane might contain...




Video: Open a PerformancePoint Web Part in a new window




Video Learn how to open a PerformancePoint Web Part in a new window, explore some of the things you can do in the new window, and how to close the window when...




Video: Applying filters to PerformancePoint reports or scorecards




Video Learn how to apply filters to PerformancePoint reports and scorecards. See how useful they can be when you explore and analyze data on a PerformancePoint dashboard.




Video: Export a PerformancePoint report or scorecard to PowerPoint




Video Learn how to export a report or scorecard from a PerformancePoint dashboard to Microsoft PowerPoint, and learn some tips and tricks for working with the...




Video: Export a PerformancePoint scorecard or report to Excel




Video Learn how to export a PerformancePoint scorecard or report to Excel and discover some tips for working with the exported data after it is in an Excel spreadsheet.




Video: Print a PerformancePoint dashboard or Web Part




Video Learn how to print a PerformancePoint dashboard or a Web Part, such as a scorecard, analytic grid, or pie chart. Find out how to make adjustments in Print...




Video: What’s New in PerformancePoint Dashboards




Video Watch this video to see some of the new features in PerformancePoint dashboards. You’ll learn about new report views, including analytic pie charts and...




Video: Enabling versioning in a SharePoint library




Video Learn how to enable and configure versioning in a SharePoint library. See how other settings, such as required check-out or required approval, affect the...




Video: View version history in a SharePoint library




Video Learn how to view version history in a SharePoint 2010 library, how to open a previous version, and how to compare that version with the current version




Video: Create a blog




Video See how you can quickly create a SharePoint 2010 blog site that you can use to share your knowledge with team members. This video shows you in less than...




Video: Link an Excel workbook to a SharePoint list




Video Learn how you can link an Excel 2010 workbook to a SharePoint 2010 list, and then configure Excel to refresh the data from the list, so you’re working with...




Video: Capture group knowledge in an enterprise wiki




Video This video provides an overview of the new enterprise wiki functionality in SharePoint Server 2010.




Video: Share knowledge in a blog




Video Learn how you can share your knowledge with team members in a SharePoint 2010 blog. This video gives an overview of the basic features and how you can use...




Video: Create personal views




Video This video explains how you can use views to organize and display the information in lists and libraries on SharePoint 2010 sites.




Video: Display a custom view on a page




Video This video shows you how to create a column, create a public view that’s based on the new column, and then display that view in a Web Part on a page on...




Video: SharePoint in Education – Lake Washington School District




Video In this video, several people from the Lake Washington School District (LWSD) talk about the implementation and use of a solution using SharePoint. The...




Video: SharePoint in Education – UW Foster School of Business




Video This video describes a SharePoint-based solution that enables people to browse through and view profiles of faculty members who teach at the Foster School...




Video: Custom social blog solution on SharePoint Server 2010




Video In this video, SharePoint MVP Yaroslav Pentsarskyy discusses a social blog solution he created for one of his clients. Inspired by other social websites...




Videos: SharePoint in Education




Article In the world of education, SharePoint is used internationally to create a platform where teachers, students, and parents can share information. Also, school...




Video: Use tags and notes to share information with colleagues




Video This video shows you how to use tags and notes to track or share information, or to receive updates when colleagues find or update information.




Video: Use Word 2010 to post to a SharePoint blog




Video When you use Microsoft Word to post to a S harePoint blog, you can create your blog post just as easily you would any other document. You can quickly check...

Video: Manage Digital Assets




Video This video provides an overview of the new features in SharePoint Server 2010 that enable you to work with rich media, such as image and video files.




Video: Navigate a team site




Video This video shows you how to navigate around a SharePoint 2010 team site to find content and resources.




Video: Navigate between SharePoint sites




Video This video explains how you can navigate between sites within a SharePoint 2010 site collection.




Video: Use Microsoft Word 2010 with SharePoint




Video This video demonstrates how you can create, update, and save documents to a SharePoint site from directly within Microsoft Word 2010. It shows how you can...




Download Office 2010 Help videos from Office.com




Article Download videos for Office 2010 from Office.com.

Source : http://office.microsoft.com/en-us/sharepoint-server-help/CL100315293.aspx?tl=3

Thanks and Have fun!!!!!




8/01/2011

SharePoint 2010 Error : The document at the url http://localhost/_vti_bin/Lists.asmx was not recognized as a known document type

SharePoint 2010 Error : The document at the url
http://localhost/_vti_bin/Lists.asmx was not recognized as a known
document type
Today, I was just trying to program against a list using the List Web Service in SharePoint 2010.  In my Visual Studio 2010, I have created a new WPF Project which will interact with my SharePoint list.

To let my WPF application talk with SharePoint List, I need to add List Web Service as below :

1. Right-click the References in Solution Explorer

2. Select Add Service Reference

3. Click on Advance

4. Click on Add Web Reference

5. Click on "Web services on the local machine"

6. Find the web service with name "List" ("http://localhost/_vti_bin/Lists.asmx")

7. Select the web service.

Aah!!! You got the below error :



The document at the url http://localhost/_vti_bin/Lists.asmx was not recognized as a known document type. The error message from each known type may help you fix the problem:
- Report from 'http://localhost/_vti_bin/Lists.asmx' is 'The document format is not recognized (the content type is 'text/ht

Now What??

Solution:

Just click on the Service Description and it will enable Web reference name textbox. and you will be able to Add Reference into your project :)

Thanks and have fun!!!!!

 

7/20/2011

Service Unavailable HTTP Error 503. The service is unavailable : SharePoint 2010

Service Unavailable:

Today when I tried to open my SharePoint site, It gave me below error!!


“Service Unavailable  HTTP Error 503.  The service is unavailable”

image

The reason for the same could be from the following:

1. Application Pools Identity account password got changed (or)

2. The application pool got stopped for whatsoever reason

To Enable Service!!

1. Open up IIS Manager and





2. Go to Connection and Expand click on Application Pools



3. Select Application Pools and Start



If Identity account password got changed!!

4. Locate your App Pool account and right-click on it and select ‘Advanced Settings’.



5. Click on the right of the Identity box to change it (A window will pop up).



6.  Click on Set and simply retype your App Pool Identity in there with the new password.

Thanks and Have fun!!!!!

7/18/2011

I got DotNetFunda.Com Most Valuable Professional - DNF MVP - 2011 award

I got DotNetFunda.Com Most Valuable Professional - DNF MVP - 2011 award
DotNetFunda.Com Most Valuable Professional - DNF MVP - 2011

Today I got great news from DotNetFunda. I have been awarded as DotNetFunda MVP for year 2010-2011.



It is really one of the proudest moment of my professional life. When you get this kind of appreciation its feel great.

On this occasion I would like to thank my Friends,Employer,co-workers, Community friends and readers for providing support for me.  Last but not least my family members who are been there for me for my every ups and down.

Once again Thanks DotNetFunda for this.

Source : http://www.dotnetfunda.com/misc/page30.aspx

7/16/2011

SharePoint 2010 Development Series - Part 1

SharePoint 2010 Development Series - Part 1
First of all welcome to the series of SharePoint 2010 Development.

We will only concentrate on practical parts of the SharePoint 2010 Development.

To start with, anytime you want to do anything in SharePoint, it starts with a site.  Every site have a parent called site collection.  So, let's make a site collection first.

There are two ways we can make a site collection:

1.  Through Central Administration

2.  Programmatically

We will see how to create site collection through Central Administration in this article and in next article, I'll explain how to create site collection Programmatically (Using Visual Studio 2010).

1. Through Central Administration

1. Click on Start -> All Programs -> Microsoft SharePoint 2010 Products -> SharePoint 2010 Central Administration

2. Under Application Management, select Create site collections





3. Please add the details like Title, Description, URL and site template etc. (See into the screen shots for details)



4. Press OK Button.

5.  After you press OK Button, You will see your newly created SharePoint 2010 Site Collection Successful Message.



6.  Click on URL.



Thanks and Have fun!!

7/01/2011

Free Books from Microsoft Press

Free Books from Microsoft Press

1 – Programming Windows Phone 7


Programming Windows Phone 7 by Charles Petzold


This book is divided into three parts. The first part discusses basic concepts of Windows Phone 7 programming using example programs that target both Silverlight and the XNA framework. It is likely that many Windows Phone 7 developers will choose either one platform or the other, but I think it’s important for all developers who have at least a little knowledge of the alternative to their chosen path.


The second part of this book focuses entirely on Silverlight, and the third part on XNA 2D. For your convenience, the chapters in each part build upon previous knowledge in a progressive tutorial narrative, and hence are intended to be read sequentially.


2 – Moving to Microsoft Visual Studio 2010


Moving to Microsoft Visual Studio 2010


Moving to Microsoft Visual Studio 2010 was written with three audiences in mind: Part I is for developers moving from Visual Studio 2003 to Visual Studio 2010, Part II is for developers moving from Visual Studio 2005 and Part III is for developers moving from Visual Studio 2008.


Here’s a little bit about the authors: Ken Haines is a software development engineer at Microsoft, working in the Consumer and Online Division. He has a passion for distributed applications in the cloud and strives to help customers and partners find the right solution for their needs.


3 – Introducing Microsoft SQL Server 2008 R2


Introducing Microsoft SQL Server 2008 R2


This book is for anyone who has an interest in SQL Server 2008 R2 and wants to understand its capabilities. In a book of this size, we cannot cover every feature that distinguishes SQL Server from other databases, and consequently we assume that you have some familiarity with SQL Server already.


You might be a database administrator (DBA), an application developer, a power user, or a technical decision maker. Regardless of your role, we hope that you can use this book to discover the features in SQL Server 2008 R2 that are most beneficial to you.


4 – Understanding Microsoft Virtualization Solutions


Understanding Microsoft Virtualization Solutions


If you want to learn more about latest Microsoft virtualisation technologies, so that you can differentiate your Hyper-V from your Remote Desktop Services, then this’s the job.


It covers Microsoft Virtual Desktop Infrastructure, Application Virtualization 4.5, Enterprise Desktop Virtualization, Windows Virtual PC and Windows XP Mode, System Center Virtual Machine Manager 2008, and Microsoft’s private and public cloud computing platforms including Windows Azure.


5 – Own Your Future: Update Your Skills with Resources and Career Ideas from Microsoft


Own Your Future Update Your Skills with Resources and Career Ideas from Microsoft


In this book, students will find a wealth of Microsoft resources they can use to identify the technology skills they need, and gather knowledge and experience to help them take charge of their careers.


Here at Microsoft, we care about students’ career success and hope these resources will open doors to learning that will lead them to better opportunities and a deeper understanding of the way technology continues to change and improve the ways people work—both here in the U.S. and around the world.


6 – Introducing Windows Server 2008 R2


Introducing Windows Server 2008 R2


This book is targeted primarily at Windows server administrators who are responsible for hands-on deployment and day-to-day management of Windows-based servers for large organizations. Windows server administrators manage file and print servers, network infrastructure servers, Web servers, and IT application servers.


They use graphical administration tools as their primary interface but also use Windows PowerShell commandlets and occasionally write Windows PowerShell scripts for routine tasks and bulk operations. They conduct most server management tasks remotely by using Terminal Server or administration tools installed on their local workstation.


7 – First Look Microsoft Office 2010


First Look Microsoft Office 2010


This book introduces you to the changes in Office 2010 and shows you how you can make the most of the new features to fit the way you work today. Chapter 1, “Welcome to Office 2010,” gives you a play-by-play introduction to new features.


Chapter 2, “Express Yourself Effectively and Efficiently,” details the great feature enhancements and visual effects throughout the applications; and Chapter 3, “Work Anywhere with Office 2010,” explores the flexibility factor by presenting a set of scenarios that enable users to complete their work no matter where their path takes them and so on.


8 – Deploying Windows 7, Essential Guidance


Deploying Windows 7


Deploying Windows 7 Essential Guidance from the Windows 7 Resource Kit and Microsoft TechNet Magazine. Looking for guidance specific to Windows 7 deployment?


Check out what the industry’s leading experts have to say in this free Microsoft Press eBook with selected chapters from the Windows 7 Resource Kit on Deployment Platforms, Planning, Testing Application Compatability, and 8 Common Issues in Windows 7 Migrations


Source : http://microsoftfeed.com/2011/free-books-from-microsoft-press/

6/21/2011

Pass parameters to a WPF Click-Once Application

Pass parameters to a WPF Click-Once Application

Introduction


Environment : Visual Studio 2010

Application   : WPF

Language     : VB.NET

Deployment  : Click-Once

Suppose you have a WPF application which has 5 XAML windows.

1. Main Window

2. Application 1

3. Application 2

4. Application 3

5. Application 4

When application get launched, the Main Window will open which will have a combo-box containing the Application's Name to select.


So any user can go from Main Window to App1, App2, App3 or App4.

Once deployed, the URL will be something like, http://www.servername.com/MainWindow.application

Problem :


But the problem is if a user wants to directly open App1, App2, App3 or App4, he/she won't be able to.

Solution :


The solution is simple.  Pass the parameters to the URL of Click-Once and force it to recognize the parameters and open up the application.

The ClickOnce application named MainWindow that you host on servername, and you want to pass in a value for the variable username when the application launches. Your URL might look like the following:

http://www.servername.com/MainWindow.application?AppID=App1

Steps To Be Followed :

A.  If you are using the application's config file then follow the below procedure:
Steps :

1. Open your project (In Visual Studio 2010)

2. Right click on your project and select Properties:



3.  Select Publish Tab and Select Options.





4. Select the Allow URL parameters to be passed to application check box.







B.  If you are using any ClickOnce.target file:




Add Below Entry:




    <GenerateDeploymentManifest

EntryPoint="$(ClickOnceInstallDirectory)$(AssemblyName).exe.manifest"

DeploymentUrl ="$(ClickOnceApplicationUrl)"

OutputManifest="$(ClickOnceInstallDirectory)$(AssemblyName).application"

AssemblyName="$(ClickOnceAppTitle)"

MapFileExtensions="true"

Publisher="$(Company)"

AssemblyVersion="$(AssemblyVersion)"

MinimumRequiredVersion="$(AssemblyVersion)"

Product="$(ClickOnceAppTitle)"

Install="true"

UpdateEnabled="true"

UpdateMode="Foreground"

TargetFrameworkVersion="v4.0"

TargetFrameworkMoniker=".NETFramework,Version=v4.0"

                TrustURLParameters="true"

>


Code :

Write below code in your MainWindow.xaml.cs/vb file:



    Public Sub New()

        InitializeComponent()

            Dim instance As ApplicationDeployment

            If (ApplicationDeployment.IsNetworkDeployed) Then

instance = ApplicationDeployment.CurrentDeployment

                If Not IsNothing(instance) Then

                    Dim activateUri As Uri = instance.ActivationUri

                    If activateUri IsNot Nothing AndAlso activateUri.Query <> String.Empty Then

                        Dim nameValueTable = System.Web.HttpUtility.ParseQueryString(activateUri.Query)

                        If nameValueTable Is Nothing Then

                            'nameValueTable Is Nothing

                        Else

                            If nameValueTable.Keys.Count = 0 Then

                            'No Parameters has been passed.

                            Else

                            Select Case nameValueTable("ID")

                                Case "1"

'Open App1

                                Case "2"

'Open App2

                                Case "3"

'Open App3

                                Case "4"

'Open App4

                                Case Else

'Open Main Window

                            End Select

                            End If

                        End If

                    End If

                End If

            End If

    End Sub

Conclusion


Please let me know if you need any help.

6/16/2011

40+ Cool Features of Microsoft Office

40+ Cool Features of Microsoft Office

Visual Studio 2010 Keybinding Posters

Visual Studio 2010 Keybinding Posters
Reference posters for the default keybindings in Visual Studio 2010 for Visual Basic, Visual C#, Visual C++ and Visual F#.

High quality, print-ready PDFs in letter & A4 format containing the default keybindings in Visual Studio 2010 for Visual Basic, Visual C#, Visual C++ and Visual F#. High-resolution versions are also available.


VS-KB-Brochure-CPP-A4.pdf

267KB





VS-KB-Brochure-CPP-A4-HiRez.pdf

793KB





VS-KB-Brochure-CPP-Letter.pdf

270KB





VS-KB-Brochure-CPP-Letter-HiRez.pdf

802KB





VS-KB-Brochure-CSharp-A4.pdf

259KB





VS-KB-Brochure-CSharp-A4-HiRez.pdf

777KB





VS-KB-Brochure-CSharp-Letter.pdf

844KB





VS-KB-Brochure-CSharp-Letter-HiRez.pdf

2.5MB





VS-KB-Brochure-FSharp-A4.pdf

819KB





VS-KB-Brochure-FSharp-A4-HiRez.pdf

2.7MB





VS-KB-Brochure-FSharp-Letter.pdf

817KB





VS-KB-Brochure-FSharp-Letter-HiRez.pdf

2.7MB





VS-KB-Brochure-VB-A4.pdf

302KB





VS-KB-Brochure-VB-A4-HiRez.pdf

819KB





VS-KB-Brochure-VB-Letter.pdf

942KB





VS-KB-Brochure-VB-Letter-HiRez.pdf

2.8MB