Skip to main content

Posts

stsadm

For a sharepoint developer/Admin stsadm command is a must known command. I am going to explain how to use the stsadm command. 1.In order to retract solution from  your site, you can use the command like as follows. stsadm -o retractsolution -name "solutionName.wsp" -url "site url from which you want to retract the solution" -immediate 2. In order to add solution to the solution repository present in the central administration stsadm -o addsolution -filename "path to the solution present in your local hard disk/solutionName.wsp" 3.In order to deploy the solution on particular site stsadm -o deploysolution -name "solutionName.wsp" -url "site url" -immediate -allowgacdeployment -force There are few more use of stsadm command .You can explore if you want Thanks

How to retrieve the url of the attachment associated with the list item?

Dudes,           It is very simple.Before I tried in many ways.I felt this one is the simple approach.Once after you get the listItem ,ie.SPListItem follow the procedure as shown below. string name=string.Empty; splistitem item=list.GetItems(queryItems)[0]; foreach(string file in item.Attachments) {     name=item.Attachments.UrlPrefix+file;  }  return name;

How to access the attachment of sharepoint list Item?

This question sounds pretty interesting.We all know that we can access the list items from the list easily. Perhaps we may not be had used this concept.Yes we cam access the attachment of the list item in this way:   foreach(string filename in listiem.Attachments) {    SPFile file=listItem.parentLis.ParentWeb.GetFile(listItem.Attachments.UrlPrefix+filename);   //do whatever u wanted to do }

What is the use of static class?

I was wonder before why we need to make some  classes  as static.The reason is very simple.You can make use of its member without instantiating the object of that class.For example public static class   Name() {      Name()       {}      public static string PersonNames()       {          //do some stuff here          return stringObject;        } } If you want to access the PersonNames() method in another class ,you don't need to do much.Just className.methodname(); ie. public class CitizenDetails() {  Name.PersonNames(); //do further stuff }

A good Blog to reffer

For Sharepoint  and Jquery related learning things , you can refer this blog. The author of this blog is a genius guy.He is well & expert in SharePoint,Jquery,.net ...etc etc. Anirudh Gup t a ,  CTO , Element8 Software Bangalore

How will you copy Lists from one site to another site?

Hi dudes,             usually  We do full deploy in order to copy the list and its contents on to another site.I want to know is there any other ways to  do the same.I mean, is there any utility to do the same thing?.I am having one idea and and i am implementing it,besides if you guys know about such utility please inform me. Thanks Pradeepa
Hi Buddies,                    While doing some research i have got a   blog which has some information regarding SharePoint2007 and SharePoint 2010.Just Go through that link.You will like it as it explains from the installation of Sharepoint.