Introduction
Today, in this article let's play around with one of the interesting and most useful concepts in SharePoint 2010.
Question: What is retrieving lists via COM?
In simple terms "To enable retrieval of all lists in the web using the client object model".
Step 1: Open Visual Studio 2010 and create an "ASP.NET Web Forms Application", as in:

Now two references need to be added to the application, they are:
-
Microsoft.SharePoint.Client
-
Microsoft.SharePoint.Client.Runtime
Step 2: The complete code of webform1.aspx looks like this:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="RetrieveListinWebApp._Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<center>
<div>
<table style="text-align: center">
<tr>
<td colspan="2">
<asp:Label ID="Label1" runat="server" Text="Client Object Model - Show Lists - SharePoint 2010 Programatically"
Font-Bold="true" Font-Size="Large" Font-Names="Verdana" ForeColor="Maroon"></asp:Label>
</td>
</tr>
<tr>
<td colspan="2">
<br />
<asp:Button ID="Button1" runat="server" Text="Show All Lists" Font-Names="Verdana"



Ganesh chinthalaPosted Sep 9, 2013, 3:51 AM
nice article vijay.can plz share Event receiver also