.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

sharepoint webparts/Usercontrols

Posted By:      Posted Date: September 26, 2010    Points: 0   Category :SharePoint


i have to create a search box which searches from external database(say oracle) and displays results in  a grid

Next (second level)  In the results displayed clicking on one field(say prcode) it should display corresponding child records from sql server database and

next when i select a record from results the detailed information need to be displayed in a form view which can be edited.

what approach should i follow on creation of this?(best approach)

any code samples would be appreciated.


View Complete Post

More Related Resource Links

Write Custom WebParts for SharePoint 2007

The popularity of SharePoint Portal Server 2003 led Microsoft to tightly integrate the next SharePoint version, Microsoft Office SharePoint Server (MOSS) 2007, with its ASP.NET 2.0 WebPart framework. This tight integration enables the ASP.NET and SharePoint developer to do a number of things that previously weren't possible

Unable to Use ToolkitScriptManager in Sharepoint 2010 webparts

I am trying to use ajax in my sharepoint 2010 webparts. Tried to add a calenderextender to textbox. But  the ajax funcationality is coming in to picture if i use only ToolkitScriptManager , but not for ScriptManager.(as i tested in visual studio 2010) The v4.master has got <asp:scriptmanager ... /> already.  So i can'nt add another scriptmanager(ToolkitScriptManager). Any help please?  

WebParts with audiences based on SharePoint groups containing AD Groups are not visible.

My client has two webparts on a page. Each of the webparts is audienced with a SharePoint group. Each SharePoint group contains one or more AD groups. The groups are not deep nested. I.e. SharePointGroup -----> ADGroup -----> list of user accounts.. When a user in any of these groups browses to the page, they cannot see the webpart. An AD user added to the SharePoint group sees the audiences webpart properly. http://support.microsoft.com/kb/948681 references this issue, however these servers are all recently built with Service Pack 2 slipstream install media, so this hotfix is not valid. They believe that the webparts were working fine previously, but then some ILM work was carried out in the AD over the weekend and it's possible that this has changed some fo the group memberships. Given that we're using SP Groups and AD Groups, Does the actual SSP Import bear any relevance to these memberships or does SharePoint use a (potentially cached) Group memberships object on the SPPrincipal? Paul.  Overweight SharePoint addict!

How to change the order of Webparts in Sharepoint 2010 wiki pages

In WSS you change the order of webparts just by moving them above or below another webpart. This does not work any longer in SP 2010. I want to move a list webpart above another list webpart. How can I do it [SP2010 Foundation].

SharePoint WebParts - View or Contribute

Hello: I would like to set different permissions to different share point webparts on the page.  For example some users (groups) would have read only access to some webparts and others can contribute.  Our security is that two SharePoint groups were created for the subsite.  One group with the Read and the other with Contribute permissions.   These design however makes all webparts either Read ony or Contribute only for all elements of the page.  This design defines the whole subsite for the users eaither Read only or Contribute - depending which group I will add them too.   For example, I cannot make Discussion Board make to add items if they belong to Read group - all webparts are read only.   There must be some security setup that would allow that. Can you provide some advise? Thanks.       I expected that I I add user to ReadGroup this person would

SharePoint Branding: How can one customize Silverlight WebParts?

Hello, I've designed my own custom master pages. However, the Silverlight WebParts in the, for instance, Site Settings > New Site dialog is unaffected by the changes. What is the most easy approach to change these colours in the Silverlight WebPart in the dialog? Is it possible to customise them with a style file like a CSS file or XAML file? or do I have to use themes in order to accomplish customization of Silverlight WebParts?   Regards, Jan Maximilian Kristiansen

Webparts and usercontrols


I got a usercontrol whch I want to add to a webpart.

The usercontrol contains a code behind file with various logic in it.

My questions are:
- how do i embed my usercontrol into a webpart ?
- should the logic from the usercontrol be in the web part .cs file or stay in the usercontrol's codebehind file ?


where can i find Jquery tabs webparts for Sharepoint 2010?


Hi All, I'm after a Jquery tabs webparts for Sharepoint 2010? i came across this one http://jquerytabswebpart.codeplex.com/ But its only for SP 2007. Any resources would be appreciated. THanks

Missing default SharePoint Webparts


Hi all,

I've just performed an upgrade on a SharePoint 2007 Content Database, the log says the following default sharepoint webparts are missing. This problem wasn't encountered when I set up the dev and test farms, just my luck it had to occur when doing prod. Seems to be the same problem experienced in this post http://social.technet.microsoft.com/Forums/en-US/sharepoint2010setup/thread/ec1d9cc0-b244-49c6-b107-8f837d4130bc. As suggested I did the Mount-SPContentDatabase command from the WFE but that obviously didn't work. Any know whats going on?

[powershell] [SPContentDatabaseSequence] [WARNING] [14/10/2010 8:50:00 PM]: WebPart class [94e9c166-264a-f84b-2377-bccefb8b3771] is referenced [3] times in the database [wss_content_intranet], but is not installed on the current farm. Please install any feature/solution which contains this web part.
[powershell] [SPContentDatabaseSequence] [WARNING] [14/10/2010 8:50:00 PM]: One or more web parts are referenced in the database [wss_content_intranet], but are not installed on the current farm. Please install any feature or solution which contains these web parts.
[powershell] [SPContentDatabaseSequence] [WARNING] [14/10/2010 8:50:00 PM]: WebPart class [ddbfb079-d77d-89c8-cb82-2

How to save the Entire Grid view data into sharepoint List using Visual Webparts ?


Hai Friends,

        I am Ali, I want to retrive the Entire Grid View data in to Sharepoint List using visual webparts. Present i am using FOR EACH condition for grid view, but it doest support for saving information into list items.

        and also i want to save the information that who has selected radio button in Grid View(Ex: If user select 'Present' or 'Absent' or 'OnDuty' or 'Leave' in these any one) that should be save in sharepoint list.

Please anybody help me,



How to retrive Data from SharePoint List to Data Grid View in Visual WebParts based on the Condition

Hi Friends... 
Here i write this Code for Retrieving Data Form SharePoint List to Data Grid view (st_attendance) in Visual Web parts....  But it doesn't work Properly....

SPWeb web = SPContext.Current.Web;
            SPList list = web.Lists["Student Profile"];
                string caml = string.Format(@"<Where><Eq><FieldRef Name='Academic Year' /><Value Type='Text'>{0}</Value></Eq></Where>",DropDownList2.Text );
                SPQuery query = new SPQuery(list.DefaultView);
                query.Query = caml;
                SPListItemCollection items = list.GetItems(query);
                st_attendence.DataSource = items;
                Controls.Add(st_attendence );

How to retrive Data from SharePoint List to Data Grid View in Visual WebParts based on the Condition

Hello Friends,

I am Srinivas, I want to know the How to retrive the Data from SharePoint List to Data Grid View in Visual WebParts based on the Condition.

Example: I want to retrive Students information from Lists to Grid View based on the Condition(based on 'Academic year' or 'Class' and 'Section'). In Student Status Page Grid view should be show the Student Details in their Status.

please any body help me



How to retrive Data from SharePoint List to Data Grid View in Visual WebParts based on the Condition


Hello Friends,

     I am Ali, I want to know How to retrive the Data from SharePoint List to Data Grid View in Visual WebParts based on the Condition.

Example: I want to retrive Students information from Lists to Grid View based on the Condition(based on 'Academic year' or 'Class' and 'Section').         In Student Status Page Grid view should be show the Student Details in their Status.

please any body help me



How to retrieve Data from SharePoint List to Data Grid View in Visual WebParts based on the Conditi


Hi Friends..

I am Srinivas Devi

I want to retrieve data from SharePoint List to Data Grid View using Visual Web parts. I want know how to write a LINQ query for retrieve data from Share Point List to Grid View based on two or More Conditions.

Like based on Employee Number, Employee Department etc...

Please Help me Sir..

Thank U Sir..



Clear Selected Filter on SharePoint List Filter / Choice Filter Webparts


Hi All,

   I am using a 'choice filter web part' and a 'Share Point List Filter web part' on a page to filter other web parts ( Lists / Data view web parts).

   The filters are working fine, but once a filter is selected there doesn't seem to be a way of showing all contents back ( that is clearing the selected filter) . The selected filter remains even if we refresh the page !!!

 Any suggestions as on how we can have the option of 'show all' or 'clear filter' for  Choice Filter web part .


Cannot open a page with 2 webparts connected after migration from Sharepoint 2007 - bug identified


Hi all,
I'm following a migration project from Sharepoint 2007 to Sharepoint 2010 (with August's Cumulative Update). I'm using the attach databases approach.

On Sharepoint 2010, when I try to open the default.aspx page of a Sharepoint Website containing 2 webpart connected I receive "An unexpected error has occurred" message.

The 2 webparts are standard Sharepoint webpart, a Text Filter WP that sends the value to Business Data List WP

Using the Correlation ID in Sharepoint Log we can see these two interesting lines:

11/04/2010 17:15:38.78 w3wp.exe (0x12A0)       0x1358SharePoint Portal Server      Business Data                 720cHigh    Invalid configuration state in TransformableFilterValuesToEntityInstanceTransformer.LoadConfigurationState

11/04/2010 17:15:38.78 w3wp.exe (0x12A0)       0x1358SharePoint Foundation         Runtime                       tkauUnexpectedSystem.IndexOutOfRangeException: Index was outside the bounds of the array.    at Microsoft.SharePoint.Portal.WebContro

How to make a textbox or a label in my own webpart connectable with webparts from sharepoint webpart

I'm developing a webpart which need to be able to receive data from standard webparts from sharepoint.
My webpart needs to get data from a sharepoint formfield in an editform from a list.
I know how to connect 2 standard sharepoint webparts with sharepoint designer. But I can't seem to figure out how to connect my own webpart with a webpart from sharepoint. All I can find on the internet are examples where you need to have your own provider and consumer, not just the consumer.
So basicly I need my webpart to be able to connect with sharepoint webparts, just one connection is enough.

I'm developing for sharepoint 2007 with visual studion 2008. 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend