Click here to Skip to main content
15,889,808 members
Everything / WebParts

WebParts

WebParts

Great Reads

by Stephen Huen
A SharePoint 2013 web part that uses lightbox to view images from a picture library.
by Stephen Huen
Displays SharePoint events (or any calendar list) in a compact widget style calendar
by Stephen Huen
A SharePoint compact widget style calendar

Latest Articles

by Stephen Huen
Displays site structure in a hierarchical tree that is expandable and collapsible
by Stephen Huen
Displays images from a SharePoint Picture Library in a widget-like thumbnail layout
by Stephen Huen
A SharePoint compact widget style calendar
by Stephen Huen
Displays SharePoint events (or any calendar list) in a compact widget style calendar

All Articles

Sort by Score

WebParts 

31 Jul 2012 by _Amy
Hi,Refer the links below:A Beginner's Tutorial on ASP.NET Web Parts[^]Flexible ASP.NET Web Part UI Pattern[^]Base class for skinned Web Parts and generator tool[^]--Amit
31 Jul 2012 by Sandeep Mewara
You should have tried Google!Start with these:MSDN: ASP.NET Web Parts Overview[^]A Beginner's Tutorial on ASP.NET Web Parts[^]
7 Aug 2013 by Joezer BH
* URL: // URL of type DOMString, readonly//The absolute URI [IETF RFC 2396] of the document.alert(document.URL); // This property is an alias for the location.href property on the window.* Eail via outlook:Compose and Send E-mail from JavaScript by using Outlook Automation...
25 Jun 2015 by Suvendu Shekhar Giri
To generate randome password use-System.Web.Security.Membership.GeneratePassword(int length, int numberOfNonAlphanumericCharacters)You need a flag in database to identify whether the password is updated on reset or updated by user. This updation has to be performed at reset...
15 Dec 2015 by Member 12128099
I have a site collection in SP 2010 with many subsites. Each subsite is for a department. In some cases the people working in the company have responsibilities in more than one department, therefore they need all the tasks assigned to them from any department to be seen at one place. For this we...
7 Mar 2012 by Shahdat Hosain
WebPartZone verb rendering mode WebPartVerbRenderMode = "Menu" works fine in IE but not in any other browser.As I see the problem since 2005 (http://forums.asp.net/t/939974.aspx[^]). I would be wonder if there is any way to have dropdown verb menu for firefox and chrome.Thanks
26 Mar 2012 by dqkhoi
Hi all,I had a problem while building search Web part based on Views.I used codes to change the CAML query of the current view to make the Data List display the search result.But when I submit the form (for searching), the view has been updated but there was nothing happened to the...
27 Mar 2012 by dqkhoi
I got the solution.Just simulate update view before submitting the form. You can use AJAX to solve this problem!Thanks all!
4 May 2012 by Member 8927095
Hi All,I am trying to create a very simple visual web part in VS2010. Initially the chart control wasnt visible in the toolbox so I had to right click/Choose Items and selected System.Web.UI.DataVisualisation.Charting.The chart control then became visible. I dragged the chart control...
4 May 2012 by Sandeep Mewara
Object Reference not set to an instance of an objectThis error happens when you try to use a property of an object that is null. You have not defined charts properly. This is not the way chart control is used. Few properties are still to be defined. Look here on how chart control works:...
3 Jun 2012 by oliver grace
I have data's in sql server.i am using webparts in my welcome page&i have used gridview in webpart zone.i want to auto update sql server data in web parts.can any one provide code for this concepts.
3 Jun 2012 by Priyaaammu
Hi... Im using webpart in my application,but i need to show auto updation in gridview in webpart zone once record is inserted in database,that record should automatically updated in webpart. Provide a code soon and guide me.....
18 Jun 2012 by venkatesun
Hi...I want some useful tips for developing FB comments functionality...like if someone comment on an ur wall u should get an email alert --> C# code.Actually I have developed the inserting,updating & deleting comments and all those stuff...What I want to know is how to send mail alert to...
19 Jul 2012 by ♥…ЯҠ…♥
I want to use WebParts in MVC3 project. I searched a lot, i could not find any useful thing.Is there any alternative for the WebParts in the MVC3 project. Any Helps will be appreciatedWith regardsR.K.PRABAKAR
29 Jul 2012 by dimpledevani
Hello Everyone, I have a textbox control and a button control in a webpart. when i click the button control(postback) the text in the textbox control is inserted in my database and then the textbox should be cleared. In my case the text in the control is not getting cleared. I...
30 Jul 2012 by dimpledevani
There was some problem with Page.Response in my case, So i just used Page.response.Clear and now its working fine.Thank you once again
24 Sep 2012 by Andres Adhi
I was trying to see what are the advantages on using either a SSRS or a Reports with SharePoint 2.0 Web Parts. Or are there any specific scenarios we have to use either of them?
24 Oct 2012 by fasan21
Hi.This problem is blowing my mind.We have a SharePoint wiki site that we created and we did a lot of customisation on the way things work.We have created many custom web parts and added them all to the article template so they all appear on every new article that gets created.In...
5 Nov 2012 by Vanitha_V_Bhat
Hi,I am working on this requirement which is a little tricky and I am not reqlly sure how to achieve it.1. We have a list called NewsFeed to update the announcements.- I need to create a WebPart which retried the 5 latest items from the list2. These need to be displayed in a single...
10 Dec 2012 by Member 8247719
Hi All,How to consume existing WCF service deployed on IIS7 in Sharepoint 2010 webpart.Thanks in advance
3 Jan 2013 by garfield185
Hi everybody. I need to aggregate the content of two different lists in one space, into one webpart in a different sharepoint, and this should be done via JavaScript. I cannot use designer and the Data View Web Part, which would ease the situation a lot... Do you know any example on...
22 Jan 2013 by garfield185
Hello everybody.I am trying to create a regular web part page with powershell and I am not able to do it. There is no information in google about the error I get:$spWeb = Get-SPWeb -Identity "http://server/site"$pubWeb...
19 Feb 2013 by venkatesun
Hi....I want some useful tips for developing FB comments functionality...if someone comment on an ur wall u should get an email alert and if someone then replies to your comment, in my case the conversation thread is lost and it becomes difficult to see who is replying to whom (I want it to be...
19 Feb 2013 by Anurag Sinha V
Hi,the below link might help.[^]there are many articles on codeproject iyself..just search for the word 'facebook' and you will get a number of articles.one of those will have answer to ur queries.hope it helps.regardsanurag
19 Feb 2013 by Asim Mahmood
Simple dear comments only can add that person who is loogedin and receiver id you can save in hidden field or commandargument of link button named as Comments.to send email study this page.http://weblogs.asp.net/scottgu/archive/2005/12/10/432854.aspx[^][]
28 Feb 2013 by niravsahayata
Hi..Asp.net webparts drag drop not working on ie 10 , does ie 10 supports it? Thanks.
13 Mar 2013 by niravsahayata
HiHow can I dynamically Hide/Show web-parts in asp.net. I am using this to doing same , but In this article they have hard coded roles on AuthorizationFilter attribute of control , instead I want roles should be assigned at runtime. I have also tried another alternate , I have declare variable...
13 Mar 2013 by Espen Harlinn
I guess you could use the LoginView[^] - there is a small example at the bottom of that page.Best regardsEspen Harlinn
19 Mar 2013 by Vikram Stephen
Hi,I have few reports in SharePoint and I am using the Report Viewer web part to the display the reports. I want to set the default zoom of the report to 75% in the web part. I know we can use the parameter value "&rc:Zoom=75" in reporserver, but how to set the default zoom to 75% in...
19 Mar 2013 by Member 9820787
HI,I am trying to dynamically generate checkbox controls in web part (SP 2010) but the number of checkboxes that has to be created depends on the value from previous web part. Abiding by the web part communication infrastructure, I can get that value only on "onprerender" stage. But if I try...
21 Apr 2013 by Mateusz Turek
Hi, Is there a possibility to combine SharePoint 2010 visual web part with build in workflow?I want to create simple application with button. When i click button i pass current user email to my workflow. Inside my workflow i will check if user belongs to specified group in SharePoint and if he...
22 Apr 2013 by AnandSharmaUK
Yes, it is very much possible to call any workflow from your webpart code.
6 May 2013 by abbijohn
Hi,I have one webpart in sharepoint 2010,have to add one more usercontrol(.ascx) in that webpart with configurable property.Is it possible..This one is working fine in normal webpage(.aspx),but it is not working in Sharepoint ,it shows error like 'filename.ascx is not allowed in this...
7 May 2013 by sandeepkumarvemula
do u have another user control in layout folder.bcs usercontrols r stored in layout folder.
20 May 2013 by nishant2310
A Web Part or Web Form Control on this Page cannot be displayed or imported. The type is not registered as safe.i have safely registered the web part in web.config. did iisreset, did evrything but still this error is not going . :(
22 May 2013 by nishant2310
When i have selected sandbox solution and if i have project properties as sandbox solution= true.If i add a web-part to the site it gives an error as sandbox solution code execution failed.but if i set the same property as false it executes successfully. why ?
28 May 2013 by Member 8596377
Hello, I am developing a Web Part that filters a ListViewByQuery through the HTML form.3 textbox;5 listBox (multiple selections); I wonder how I do to make the filter without doing CAML query? SPContext.Current.Web.Lists SPList list = ["Issues"];MyCustomView.List = list;string...
20 Aug 2013 by Am Gayathri
Hi, I want add javascript in my web-part in share point 2010.Requirement is,I have to show one link ('Click here to send URL') in my page, while clicking on that link it should open outlook mail sending window (New mail) with the current URL of the page which is opened.How can i...
7 Sep 2013 by akhil.krish
Hi, News slide the top news , my requirement 3 major news tabs in my website , 1) Local news, 2) Golbal News, 3) Breaking News... random change News in website... can u give me suggestion for webpart in sharepoint news slide...
23 Sep 2013 by Satbir Singh Basi
Hi guys,I am trying to create a publishing site on Share point 2013. I have a custom list which contain a schedule about a walk-in clinic hours. It show like a table though I can change the view to calendar view or table view etc. But I want to give a custom view for the user. something...
27 Sep 2013 by Satbir Singh Basi
I found a solution to create web part and add that web part to the site and have all the styling in to the web part. There is link which describe how to create visual web part for SharePoint 2013 and how to deploy it all stuff like....
11 Nov 2013 by Sayan Bera
Hello,I have a List in SP 2007. I created a webpart which displays the listItems using SPGridView.When I click on any item in the list, how can I pop-up a jQueryUI dialog?And how can events of jqueryUI buttons call server-side functions from the webpart? Any help is...
24 Mar 2014 by Nallya
Hi,i am having data view web part and i want to send integer array from site pages to web part .i want to populate all record related to those ids(integer array).i am doing this in share point designer.How can i do this?Thanks.
23 Apr 2014 by Member 10770385
Just got a work to do for school which consists in creating a webpart to integrate in my school's intranet portal that lists information from a table in a database. does anyone have a tutorial or have done something similar that could guide me?. i've been programming in asp.net c# webforms for a...
5 May 2014 by vignesh957
I have a Custom Editor Webpart for displaying content as Grid style,List style and Rolling Style. I need to select the style from Edit WebPart which has Display DropdownList(Grid,List and Rolling).It is working fine, but the problem is dropdown value not retaining after stop debug and run...
29 May 2014 by chaosworrier_oz
I have a situation where a SharePoint site has some custom actions on its document library context menu – both 3rd party and a simple bespoke action I have developed.Now, the custom actions work fine when the context menu is displayed from a specific document library but do not get displayed...
12 Jun 2014 by Member 8073143
Hi all Tech geeks avilable here in the forum,I am facing some strange problem. I have a aspx page in .netI just wanted to write the same html code in a sharepoint webpart(same as application page in .net) due to some requirement but doing so i am facing some starnge problem all the design is...
22 Aug 2014 by ginnas
Hello,In my sharepoint custom webpart i am using two spgridviews, here sorting of the second spgridview is not working , it is always sorting the first spgridview if we sort the second one also.Even the filtering functionality for both the spgridviews are working.Kindly help.Thanks
22 Sep 2014 by Member 11023602
using System;using System.ComponentModel;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using Microsoft.SharePoint;using Microsoft.SharePoint.WebControls;using System.Data;namespace...
22 Sep 2014 by Kishore Pogaru
Do not assign a value while declaring your variableChange private int srno = 1;to private int srno;
25 Nov 2014 by Member 11262219
I have a custom webpart in which a added a toolpart to choose the datasource of the grid in the webpart.I am getting the dropdown list in the toolpart but can't figure out how to bind it to the grid in my webpart.I get a "null reference exception" when i populate the grid.Please help in...
4 Feb 2015 by Malayali Coder
I am new to ASP.NET and i was trying to learn about webparts. i created a webparts page with personalization enabled and different zones and also added a dropdownlist to call all these different display modes. It was all working fine in the local asp.net development server. but when i publish...
31 Mar 2015 by sawan patel
I have visual web part and i am attempting to set custom property unique value on each pages. For example i have two aspx pages. Deal.aspx and Fund.aspx. Both page is having same web part used. When i set the value custom property in web part of Deal.aspx the same value gets reflect in Fund.aspx...
24 Jun 2015 by Member 11791402
hi,i have requirement that when user reset his password with system generated password.upon next login user should navigate to change password page.could any one can help me to get this functionality ..??
2 Jul 2015 by MONISH K M
Hi,Strange behavior appears when using Update-panel on web part in Share-point 2013.In FF and Chrome post-back leads to full page refresh after small idle between requests (around 2 minutes). Example: we have a page with Tree-view and button inside Update-panel. We open this page and...
19 Aug 2015 by ManiTamilan
I try to create a form in kentico hosted trial site.but i don't know how to add form and connect with sql.I am beginner to this field.Explain deeply please
14 Sep 2015 by Member 11982668
Hi, I have a test.aspx page on which i have inserted a web part i.e. OOTB web part which is a library. According to the requirements, I need to disable drag and drop functionality for the users. User will not be able to add any documents on this web part, web part will only show them the...
16 Dec 2015 by Leo Chapiro
Found here: https://social.technet.microsoft.com/Forums/sharepoint/en-US/49cd80c2-7131-4c80-be44-3e7713917891/show-information-assigned-to-me-at-home-page-in-sharepoint-2010-after-login?forum=sharepointgeneralprevious[^]In order to add Assigned to Me on home page, you can try the steps...
26 Jan 2016 by jaylisto
I published an Infopath Form to the sharepoint list as a library. datasheet view is working here.and then I have added a web part in a site containing the same custom library. i can also add or edit the list here. but i discovered that datasheet view is disabled.i tried: Allow items in...
12 Feb 2016 by Member 12077402
Since manually updating the promoted links list is soooo tedious, I would like to dynamically provide a list of sub-sites to the Promoted Links Web Part, preferably with JavaScript. This can be either refreshing the promoted links list or directly importing the list data to the web part. ...
24 Feb 2016 by Beginner Luck
can use javascript to change or create webpart property in web part in sharepoint2013What I have tried:i know that i can use C# to do but i just want to try using java script or jslink
7 Apr 2016 by manella
I hope someone could help my case:We have a 2010 SP Server which was migrated to 2013 recently, and my assignment is to create custom List with Application page which invokes Web Part.Our secured environment prohibits use of SP Designer, and functions only as .wsp deployment.In the...
4 Jul 2016 by senthill
when you click any server side control, the page will post back by default. If you don't want to post back the page, place the control inside the update panel which available in ajax controls.
4 Jul 2016 by senthill
can you post your style sheet which you added in the webpart page?
18 Jul 2016 by senthill
Hi, did you make any change on the auto generated designer ascx.g.cs file?if yes then the file will be deleted while make any changes on the ascx file code. To resolve this issue, crate a new webpart and copy paste the same code.Regards
23 May 2020 by cgprakash
Hi, I need to know how to update likes of a Disscussion Board list item using Sharepoint REST API from a link. I have a webpart in a page like below: [Model Web Part] By clicking the "Likes" link, it need to update the likes in Discussion...
3 Jun 2014 by Stephen Huen
A SharePoint 2013 web part that uses lightbox to view images from a picture library.
4 Jul 2014 by Stephen Huen
Displays SharePoint events (or any calendar list) in a compact widget style calendar
5 Jul 2014 by Stephen Huen
A SharePoint compact widget style calendar
8 Apr 2014 by ravi gunishetti
This article explains how to customize the CQWP using SharePoint 2010 without any code and deployment.
6 Jul 2014 by Stephen Huen
Displays site structure in a hierarchical tree that is expandable and collapsible
5 Jul 2014 by Stephen Huen
Displays images from a SharePoint Picture Library in a widget-like thumbnail layout
19 Jul 2012 by bbirajdar
The answer is - you can't. Server controls cannot be used in ASP.NET MVC framework.To understand this you need to study the basics of ASP.NET MVC and the ASP.NET Webforms framework..Some articles for getting...
22 Sep 2012 by Shahdat Hosain
My initial goal is to achieve followings 1. Render dynamic TextBox in custom editor webpart 2. Manage Text (, visibility, height, width etc) of the TextBox from editor part. 3. We can consider Sharepoint webpart or asp.net webpart frameworkI have tried following way ( with asp.net webpart...
18 Jul 2016 by azhauddin
unable to edit my ascx file in my web part. after editing ascx file and debugging the web part, ascx.g.cs file gets deleted automatically ? and gives ErrorWhat I have tried:i tried to edit my web part ascx file, after changing some fields and input tags i saved my web part and build the...
31 Jul 2012 by dinu allakonda
Good Article on web parts in Visual Studio 2008
27 Mar 2012 by Not Active
You are only updating the view object which has nothing to do with what is displayed. The DataList being displayed needs to be refreshed so the updated view will be used.
18 Jun 2012 by Nilesh Patil Kolhapur
10 Jun 2013 by Member 8596377
Hello, I'm making a custom Web Part.I am developing a grid with control "ListViewByQuery".need to add an icon according to a column of type "person".I looked at the list of events there is no "ItemDataBound" to access row by...
4 Jul 2016 by ankitarora03
I created a page with server side radiobutton and checkbox functionalities.But selecting every control the page is refreshing.In this regard request to help me by suggesting an idea for rectifying this problem.
15 Sep 2015 by Member 11982668
I have a list view web part on my .aspx for viewing documents in the library. As per requirement I want to disable drag and drop feature of downloading documents from web part to the local desktop.Thanks in Advance
4 Jul 2016 by Member 12128099
I am trying to customize my portal page as a fresh developer, I add css and disappear the quick lunch and some more css.Within few past days, I faced with weird issue that when I make a web part and edit the view, after 5 or 6 time refreshing and specially when I change the chrome type, the Web...