Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I want to get SPList data in webpart just passing name in tool. Anybody have any idea about that?Please Suggest me.

share|improve this question
    
Tool mean what exactly ur asking?. Just go through list related server object model of sharepoint. –  My Name is Suresh Mar 30 '12 at 13:47
1  
Are you talking about web part properties? –  Kit Menke Mar 30 '12 at 21:11

3 Answers 3

I think u mean the tool part(Web Part Properties)... Create a class which extends Microsoft.SharePoint.WebPartPages.ToolPart. Can refer this Creating a Web Part with a Custom Tool Part

share|improve this answer

When you mean data, you mean data in a list or information about the list itself? Obviously there are multiple ways, simplest being: 1. ECMA Client Script, multiple reference, but simple see here http://kamilmka.wordpress.com/2011/11/10/ecmascript-client-object-model-retrieve-data-from-a-list/ 2. Server side even easier, use either the SPContext.Web, retrieve reference to list using TryGetList("")

share|improve this answer

Tool mean what exactly ur asking?. Just go through list related server object model of sharepoint. Query Sp list data

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.