Skip to main content

Posts

Add data to GridView and Export GridView data to Excel sheet

Suppose , you have data stored in a array of structure. let us say,    public struct myData    {       string name;       int age;       string city;      public myData(string pName,int pAge,string pCity)         {           name=pName;           age=pAge;           city=pCity;         }     } ............... public void dataTableData() {        List<myData> items=new List<myData>();        ...add name,age,city of each person to the object 'data'.    //Now you need to add data present in the object 'items' to the GridView DataTable table=new DataTable(); DataRow row=null; //Create three columns 'Name','Age','City' table.Columns.Add(new DataColumn("Name",typeOf(string)); table.Columns.Add(new...

I have began to Explore REST Services...

Now i am very much keen to know about REST services.!!!!! What is this REST services? Whilre retreiving data from server, most of the time our mind goes to Webservice. There is some thing beyod the webservice, by using which we can retrieve data in strongest way.That is through "REST". I have got an video link on  Youtube , by following the instruction you can explore ,how to use REST services... I am going to post certain thing about REST services shortly..:)..

The Fastest way to Export Schema of Sharepoint List

Many of my SharePoint Developer friends are struggling to get the Schema.xml file of a newly created list. The schema.xml file has the list's metadata information, by using the schema.xml, we can create the lis definition and paste this contents of Schema.xml to the Schema.xml file of the newly created List definition, so that you can deploy the list definition on another site. In order to do this, you guys might be following the procedure bu saving the site template and get the site definition solution. After this, you will open visual studio and import this solution and wait for few minutes. THIS IS A CRAPPY PROCEDURE..Why do you invest your time to get a schema of one or few list  by taking entire site definition?..If that site has lots of lists, then it will take lots of time. In my Research, i have found a the BEST  and quicker way to get schema.xml file of a particular list which you need Schema.xml. Follow the following procedure : Go to your site  click ...

Setting Up the Development Environment for SharePoint 2010 on Windows Vista, Windows 7, and Windows Server 2008

 Usually we can install microsoft Shapoint foundation on servers OS such as windows server 2008 .You might have tried to instal sharepoint foundation software on your client OS such as Vista,Windows7,etc.Here i have got a msdn link .You can follow the steps they have mentioned and you can successfully install the SharePoint Foundation on your client OS.    Follow this Post Cheers Pradeepa

How to find the internal name of a column in Sharepoint

Some of you guys have question about where we can get the internal name of a column of a sharepoint's list. Many guys have posted like, we can get by using CAML query builder and some other blaa blaa stuff.. Actually you can get easily . 1.Click on the list in which the column exists. 2.click on the list setting and  click on the column name . 3.In the browser, in the url section go to the end of the url. You will find Field = internalName.

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