Posts

Showing posts from February, 2012

how to bind the image from the sharepoint list in gridview using vs 2010 as webpart

< asp : GridView   ID ="gvPictureLibrary"   AutoGenerateColumns   ="False"         runat ="server"   EnableModelValidation ="True"> </ asp : GridView > Code-behind: protected   void   Page_Load( object   sender,   EventArgs   e)           {               if   (!IsPostBack)               {                   SPWeb   site =   SPContext .Current.Web;                   SPList   list = site.Lists[ "PL" ];                   DataTable   dt =   new   DataTable ();                   dt.Columns.Add( "ImageUrl" ,   typeof ( string ));                   DataRow   dr;                   foreach   ( SPListItem   item   in   list.Items)                    {                       dr = dt.Rows.Add ();                       dr[ "ImageUrl" ] = item[ "ows_EncodedAbsThumbnailUrl" ].ToString();                   }                   ImageField   colImage =   new   ImageFi

50 SharePoint 2010 Interview Questions With Answers – IT Pro / Architect

Click Here

SharePoint Interview Questions

Question: -What is SharePoint? Answer: – SharePoint 2010 is a platform where user can share Data, Collaborate and people can also take this platform and customized platform as per their requirements. Question: – What are the two different products in SharePoint 2010? Answer: – SharePoint 2010 has basically two different products namely SharePoint Foundation 2010 and SharePoint Server 2010. SharePoint Foundation 2010 is basically a free version. SharePoint Server 2010 is basically a paid version. Question: -How to create a simple Website in SharePoint 2010? Answer: – In order to create a Website in SharePoint 2010, we need to use SharePoint 2010 Central Administration tool. As soon as you click on SharePoint 2010 Central Administration tool it will ask for credential do put your credential and you will directed to the SharePoint 2010 Central Administration screen. Now from the Application Management screen click on Manage web applications, as soon as you click on Manage

How to edit the Welcome drop-down menu in Sharepoint 2010

Image
1. Create an Empty Sharepoint Project 2. Create an Element Now you need to create an element to attach to your feature, to do that right-click on the project and add a new item, then choose “ Empty Element “. Dont forget to give it a Name. and put the below code in that Element file <? xml version = " 1.0 " encoding = " utf-8 " ?> < Elements xmlns = " http://schemas.microsoft.com/sharepoint/ " > < CustomAction Id = " CustomMenu_MyInformation " GroupId = " PersonalActions " Location = " Microsoft.SharePoint.StandardMenu " Sequence = " 1000 " Title = " My Information " Description = " View and Update my Information " ImageUrl = " _layouts/images/icon_contactlist.gif " > < UrlAction Url = " /SitePages/My%20Information.aspx " /> </ CustomAction > </ Elements >

Get SPUser from SharePoint List

     private SPUser GetUser(SPListItem item, SPField userField)         {             string currentValue = item[userField.Title].ToString();             SPFieldUser field = (SPFieldUser)userField;             SPFieldUserValue fieldValue = (SPFieldUserValue)field.GetFieldValue(currentValue);             return fieldValue.User;         }