Posts

Showing posts with the label SharePoint 2010

Hide Columns in NewForm.aspx / EditForm.aspx / DispForm.aspx

Hide SharePoint Columns in New / Edit / View Form Open the SharePoint Designer 2010, Go to the Corresponding List/ Library. Open the New/Edit / View Item Aspx Page in Edit In Advance Mode add the Following script <asp:Content ContentPlaceHolderId="PlaceHolderAdditionalPageHead" runat="server"> Now copy & paste this JavaScript code after above mentioned tag : <script language= "javascript" type= "text/javascript" > _spBodyOnLoadFunctionNames.push( "hideFields" ); function findacontrol(FieldName) { var arr = document.getElementsByTagName( "!" ); // get all comments for ( var i=0;i < arr.length; i++ ) { // now match the field name if (arr[i].innerHTML.indexOf(FieldName) > 0) { return arr[i]; } } } function hideFields() { var control = findacontrol( "Title" ); control.parentNode.parentNode.style.display= "none" ; c

Favicon icon in SharePoint 2010

Image
Copy the download image to your layouts folder C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\IMAGES\CompanyName Find the below in your master page and replace the new icon url. <SharePoint:SPShortcutIcon runat="server" IconUrl="/_layouts/images/CompanyName/favicon.ico"/>

Create an ASMX Web Service in SharePoint 2010 Using Visual Studio 2010

Image
Back in SharePoint 2007, asmx web services were quite prevalent, thanks to the WSPBuilder tool, and it’s templates.   They are useful for executing actions between multiple web applications and can be used by client applications, as well.  Furthermore, InfoPath forms, deployed to SharePoint, could also use these asmx web services. Unfortunately, Visual Studio 2010 did not come with a template for SharePoint web services.  So, today I will be writing about how we can create asmx web services for SharePoint 2010.  All you will need is SharePoint 2010. First, start a new Empty SharePoint 2010 project.  I will call this SPASMXService . Make sure to deploy it as a farm solution. First, you need to close this project by right clicking on the project and then selecting ‘unload project’. Then, right click on the project again, and select, ‘Edit SPASMXService’. Under < SandboxedSolution > False </ SandboxedSolution > type in: < TokenReplacementFileExtensions > asmx </

SharePoint 2010 Branding

Real World Branding with SharePoint 2010 Publishing Sites http://msdn.microsoft.com/en-us/library/gg430141.aspx#Y13640 The most important source of information is the  SDK . I can’t stress that enough. There is so much more documentation with this release than there was with 2007. However, we are all in the habit of looking to each other for information first. Researching the SDK and walking through the Development classes, even if you aren’t a developer. is an important step in understanding the complex relationships between the objects in SharePoint and ASP.NET. Planning Strategy and Design Visual Design SharePoint 2010 Layered Photoshop File!  – Erik Swenson Universal Usability Guidelines The Pursuit of Interface Design Simplicity  -Luke Wroblewski Visible Narratives: Understanding Visual Organization  -Luke Wroblewski Common Visual Design Misconceptions  – Luke Wroblewski Usability 20 Do’s and Don’ts of Effective Web Design Introduction to Good Usability 10 Useful Usa