1
vote
1answer
14 views

Web Part Namespaces include class name in SharePoint 2010

My client is upgrading from WSS 3.0 to SharePoint 2010 (yes, I know the year is 2014, but baby steps). I am migrating my custom solutions to work in in 2010. My current issue is the way SharePoint ...
1
vote
0answers
20 views

Replace default List View Web Parts

As the title explains, I am trying to remove the default Web Parts that are associated to list items and replace them with my own custom web parts. Here is what I've attempted so far: SPList list = ...
0
votes
0answers
31 views

SP/Visio: Shape Mouseover

I created a Visio 2013 diagram and connected it to SharePoint as a webpart. The shapes that are within the Visio diagram are linked to pages. Is there a way to add the mouseover function to the ...
0
votes
1answer
60 views

SP2013 Sandboxed Visual Web Part, Custom properties won't save

I can't get my properties to save (or possibly load, or both). The custom properties show in the property pane just fine (Well, the formatting isn't great, but they're there). But nothing I do can ...
0
votes
0answers
145 views

Why edit option is not working on the SPGridView in SharePoint 2010?

Have created the Webpart based on http://kitmenke.com/blog/2010/02/18/editing-in-sharepoints-spgridview It does work however I want display the results based on the filter value as below it ...
0
votes
2answers
83 views

Custom webpart to display HTML form which supports adding additional dataRow on the fly?

Would like to build a WebPart which will display an HTML form(allow the users to add the data rows as many as required) and will insert the data into the SharePoint list on the submit (based on ...
0
votes
0answers
25 views

How to create WebPart configuration page

I want to make my WebPart configurable by the configuration page, instead of standard toolpart. What I want to achieve, is that after opening the standard configuration of the webpart (Edit Page=>Edit ...
0
votes
1answer
35 views

SP 2010 Development Concepts

I'm building a custom addon for a SP 2010 instance. I've been able to get a Visual Web Part in visual studio deployed to my SP instance and debug it. As far as I can tell I have all the normal ...
1
vote
0answers
39 views

Where i can override the OnInit method

I need to write the following farm solution to override the InInit method as follow:- protected override void OnInit(EventArgs e) { var request = HttpContext.Current.Request; ...
1
vote
1answer
32 views

Performance: SQL query vs SPListItemCollecion

A project I'm working on has me pulling lots of data from another SQL database (via a c# webpart) and I'm curious about the best approach to make it as speedy as possible. The two thoughts I had were ...
2
votes
0answers
21 views

Filter and sort related data from multiple lists

I've been working on ways to collect data from a few lists, do some calculations on it and set up user controls to filter/sort that data. Ultimately I want a web part (or similar) that a user can use ...
2
votes
1answer
43 views

Cannot toggle personalization scope programmatically

I'm trying to switch personalisation scope for the current user: protected void lnkToggleMode_Click(object sender, EventArgs e) { try { var wpmgr = ...
0
votes
0answers
30 views

Publishing Image Always Null in Code

I'm building a web part that outputs fields from child site welcome pages. I use publishing images to allow users to select the background images from a library. Whenever I attempt to get the images ...
2
votes
1answer
320 views

Programmatically trigger “New document” action in a document library

I've been asked to check if it is possible to trigger the creation of a new document linked to a content type. Like, to make it simple, you have a webpart, a button, you click it, and it opens the ...
2
votes
3answers
502 views

Sharepoint 2013 Site Content > New Webpart Page

Please take a look at this link: http://msdn.microsoft.com/en-us/library/dd583147(v=office.11).aspx In that link it explains how to add custom templates into SharePoint for when you create a new ...
1
vote
1answer
115 views

How to get content from Content Editor WebPart (CEWP) to a custom WebPart on the same Page?

I have two webparts on a single page: Content Editor WebPart My Custom WebPart I need to send content from 1 in HTML format to 2. Is there a way to achieve this? I was thinking of, maybe, adding ...
1
vote
1answer
47 views

SharePoint Tabs - Parent/Child Integraty?

I need to develop a SharePoint 2010 application which will be having more than 120 Fields. I would like to break the Fields into smaller modules (i.e., Summary, Impact, Dependencies, Plan, Decision, ...
3
votes
2answers
2k views

Custom Page Layout in Sharepoint 2013 Foundation

Sharepoint comes with a set of Text Layout Templates. How can I create my own custom Text Layouts under Sharepoint 2013 Foundation. What I'm trying to achieve is a shown below. PS: I do not have ...
1
vote
1answer
59 views

How to edit web part from wsp solution

I have wsp files that contain some web parts that I need to change the functionality of. Without the actual solution or project files, using just the wsp, is it possible to edit them? I changed the ...
6
votes
1answer
247 views

Programmatically set a WebPart title to a $Resources value

I need to programmatically add a web part to a page where the title is using a $Resources:Filename,Key; string. I know I can use SPUtility.GetLocalisedString() to retrieve the correct value (and loop ...
0
votes
0answers
58 views

In SharePoint 2013, adding selected webparts to a page

I have been given an interesting problem to solve. We have a publishing site in SharePoint 2013. Requirement: Every user should able to customize their home page with ease. Load available webpart ...
0
votes
0answers
158 views

Adding SocialCommentControl to a page

I have created a page layout for my publishing site. On this page layout i want to add a commenting and rating option. The rating options shows up just fine on the page but the commentcontrol doesn't ...
0
votes
1answer
67 views

SharePoint List add comments as formatted text

I'm not sure if this is even possible but thought someone must have done something similar. What I'm looking for is the ability for a user to enter a "comment" and that comment populate another field ...
0
votes
2answers
383 views

setting cookie in custom webpart

I have a webpart and I need to set a cookie and read write from/to this cookie. I tried to read the cookie using Request.Cookies["Cookiename"] and setting the cookie using ...
0
votes
1answer
223 views

How to show a javascript alert and close the browser tab on button click [closed]

I have a web part with button that is clicked upon approval of a workflow. I want to add a JavaScript alert after performing all the button click c# code and then upon closing the alert the browser ...
0
votes
1answer
389 views

Build a visual web part that shows a document library

Ok so I need to build a visual web part (Has to be Server side and done in visual studio c#) that shows a document library. On selection of the document library, the web part must output the entire ...
2
votes
1answer
111 views

How I can start with ASP.NET and Sharepoint 2010 Development? [closed]

I don't know how I can begin with the Development for Sharepoint 2010. I can create ASP.NET Webapplications and begin with ASP.NET MVC 4 Now. I search a good article for the work of ASP.NEt (MVC or ...
1
vote
2answers
2k views

Using SPQuery with SPList.GetItems(SPView)

I have a web-part which displays a variety of items in a spgridview based on a SPView. Additionally, I have implemented a search module which when a keyword is entered should get all items that has a ...
0
votes
1answer
59 views

Create folder in Generic Setup Path

Trying to create folder in filesystem. But it doesn't work for general domain users, only for admins. I've tried _strArticlePath = SPUtility.GetGenericSetupPath(Path.Combine(_strArticleStoragePath, ...
0
votes
0answers
32 views

Problem in mail web part

I wrote this code to send mail but there are exceptions in running it. public string SendEmail(string mail, string password, string to, string subject, string body, string filePath) { ...
0
votes
1answer
290 views

Order of web parts programmatically added to SharePoint page

I am adding multiple list viewer web parts to a SharePoint [web part] page using the code below: // Create the object SPLimitedWebPart Manager SPLimitedWebPartManager WebPartMgr = ...
1
vote
3answers
50 views

New to Developing SharePoint Web Parts and Features

I recently Developed a really simple web part scoped to site (or at least it's feature is). I also created a feature that up[on activation is suppose to create a new content type. That's fine and ...
0
votes
1answer
96 views

Pass user credentials to JSP website from SharePoint website

I have developed a JSP website. I also have a SharePoint server based website. Let's call my JSP website to be www.xyzjsp.com and my SharePoint based website to be www.mySPwebsite.com How can I ...
7
votes
2answers
652 views

Anonymous access: Add an Item to List without allowing to View the List

I'm creating a 'Contact Us' webpart with form to allow anonymous user to send a message which will be added to a SharePoint List. However I cannot grant the anonymous user the permission to Add ...
0
votes
2answers
129 views

Search core query webpart and custom xslt with paging or other approach

I have an issue, basically I created a custom web part which inherits from SearchCoreResults. This webpart searches all the possible tasks across WHOLE sharepoint and shows them if they are not ...
0
votes
1answer
55 views

How to approach a file in visual webpart

To explain my question, lets consider I'm developing a webpart in Visual Studio, a visual webpart. By default when I add a webpart to solution, it creates a MyWebPart wich exists of 3 files: ...
2
votes
1answer
85 views

Error using ListViewWebPart in a “using”

This one has me stumped. I'm creating a ListViewWebPart, which ultimately inherits from System.Web.UI.Control which implements IDisposable. So ListViewWebPart should also be IDisposable. Right? But ...
1
vote
0answers
95 views

ViewState Timing Issues with SharePoint 2013 & ListView plus DataPager

Good morning! I'm porting an existing custom 2010 webpart containing a ListView and a DataPager to 2013 and seeing some weirdness with the DataPager and I believe the cause is associated with the ...
0
votes
1answer
614 views

Programatically adding webparts to a page in sandbox

I've successfully implemented code to add web parts to web part zones in code using WebPartManager's in other projects. Now that I'm working in a sandbox solution, VS can't seem to recognise ...
0
votes
1answer
65 views

textbox visual control how to get text

i have a user control, which has update panel and a button in it, when i click on button a message box appears, in messagebox i have one text box and another button, when i click on another button, ...
1
vote
1answer
29 views

no getting user control property from webpart

I am using this MSDN tutorial but it is not working, http://msdn.microsoft.com/en-us/library/ff649867.aspx When I try to get a usercontrol value, nothing comes up try { // Loads a user control ...
0
votes
3answers
108 views

User control propertie get from webpart

I have a webpart that is loading a user control, but I am not able to get the value of a webpart property in the loaded user control. The web part code goes like this: public class CVWebPart: ...
1
vote
2answers
824 views

How to implement HTML5 Video in Sharepoint 2010?

Has anyone had any success in building a web-part with HTML5 video and using it in SP 2010? Background: Currently I am using JWPlayer by imbedding an HTML page using a content editor web-part. I ...
0
votes
2answers
927 views

How to display and get the value chosen in an User field?

I'm very new at Sharepoint and I faced to a trick issue. Here is the situation : in an .aspx.cs file, I've created an EventHandler called btnValidate_Click, raised on a click on a button. In this ...
0
votes
1answer
587 views

Decompiling a .webpart file?

I know it is possible to decompile SharePoint web parts if you have their .dll or .wsp files (I have successfully done this myself using tools like DotPeek or this method), but what if you are left ...
2
votes
1answer
527 views

Comma is being appended to values when adding new item to list through C#

I have a custom web part form which takes a few values from text boxes and adds the new row to a list. The problem is that when I click 'save', the values are being saved but some fields like ...
2
votes
1answer
124 views

Programmatically removing web parts in a sandbox solution? (Sharepoint 2010)

I had a problem with web parts being duplicated whenever their feature was reactivated, so I made a question about that. It was answered (and correctly so, I think) - I have to programmatically ...
0
votes
1answer
221 views

Listbox in webpart has no selection

I'm having a problem that's really blowing my mind right now, because it seems like some basic .net functionality isn't working properly. No doubt I'm missing something really obvious. I could really ...
1
vote
1answer
279 views

How write a code to webpart which change the password to Acrive Directory

I want to write a webpart to change/reset a pasword to Active Directory. How Could I do it ? Where are the user password are situated ?
0
votes
1answer
262 views

file downloading in sharepoint

I've created a web-part. I've added few documents to it. I'm implementing download functionality. I want file download dialog. My code is like this. DownloadItem(SPListItem item) { // Get physical ...