Posts

CustomAction Element

http://msdn.microsoft.com/en-us/library/ms460194.aspx

Create a Custom Action in Site Action\Settings in SharePoint 2013

Visual Studio 2012 --> SharePoint 2013 Project -->Right Click on the Project ---> Add New Item--> Empty  Element <? xml version = " 1.0 " encoding = " utf-8 " ?> < Elements xmlns = " http://schemas.microsoft.com/sharepoint/ " >   < CustomAction   Id = " NewID "   GroupId = " SiteActions "   Location = " Microsoft.SharePoint.StandardMenu "   Sequence = " 2000 "   Title = " My Link "   Description = " Create My Link " >     < UrlAction Url = " ~/_layouts/15/Test.aspx " />   </ CustomAction > </ Elements > Hope this will helps you... Happy Coding...

CrossListQueryInfo in SharePoint

                   The CrossListQueryInfo object uses the CrossListQueryInfo object to get the cached results or, if there are no cached results available, it performs a cross-list query to the database and then caches the results for future use .        CrossListQueryInfo clqi = new CrossListQueryInfo ();                         clqi.Query = "<OrderBy><FieldRef Ascending=\"FALSE\" Name=\"Title\" /></OrderBy><Where><BeginsWith><FieldRef Name=\"Title\" /><Value Type=\"Text\">Test</Value></BeginsWith></Where>" ;                         clqi.ViewFields = "<FieldRef Name=\"Title\" /><FieldRef Name=\"ContentType\"...

Query SharePoint List - SPQuery vs SPSiteDataQuery vs CrossListQueryInfo

Click here hope this will help you...

Add Blocked File Types in SharePoint 2010

string webAppUrl = "Your URL" ;                 string myBlockFileType = "dll" ;                     Uri myUri = new Uri (webAppUrl);                     SPWebApplication myWebApp = SPWebApplication .Lookup(myUri);                     Collection< string > blockFileTypes = myWebApp.BlockedFileExtensions;                     blockFileTypes.Add(myBlockFileType);                     myWebApp.Update(); Hope this will helps ...

Displaying the FileUpload Control image in Image Control Inside the GridView

scenario :   Display the image in the asp Image control while uploading by using Javascript...   Here you go with the solution..... function GetImage(field, rowIdx, col) {                           var cellValue = 0;             var currValue = 0;               rowIdx = parseInt(rowIdx) + 1;             var objGridView = document.getElementById( ' <% =newGrid.ClientID %> ' );             cellValue = objGridView.rows[rowIdx].cells[3].children[0];              cellValue1 = objGridView.rows[rowIdx].cells[3].children[1].value;       ...

Getting values from SharePoint calculated column

Here you go for getting values from the Calculated column. SPFieldCalculated  month = ( SPFieldCalculated )oitem.Fields[ "Month" ]; SPFieldCalculated  year = ( SPFieldCalculated )oitem.Fields[ "Year" ]; lblOrderConformation.Text =  "ORDER CONFIRMATION IN - "  + month.GetFieldValueAsText(oitem[ "Month" ]) +  " "  + year.GetFieldValueAsText(oitem[ "Year" ]); Hope this will help you ....