0
votes
0answers
30 views

get data form database & display in gridview's textboxes

i want to populate data in gridview's textboxes which are stored in database and if no value found in database it should show blank text boxes. BUT my problem is i am binding gridview data for Area ...
0
votes
1answer
26 views

Initializing a DateTimeControl in a webpart

I have a visual webpart that uses several SP DateTimeControls (set to DateOnly) on a specific spot on the page. Those controls were simply added in VS to the ascx page from the toolbox like this: ...
0
votes
1answer
34 views

Modifying the layout for my Content Search web part

I have added a content search web part, and I select the following layout settings:- The output was very poor regarding the layout:- So can I do the following modifications:- To have the items ...
1
vote
1answer
63 views

Using Content search web part to retrieve items from another site collection

I have a web application that contains two site collections(team site + enterprise wiki), with the following URLs:- -http://applicationname/teamsite -http://applicationname/enterprisewiki Now I ...
0
votes
1answer
26 views

unable to add a search core result web part inside my enterprise wiki site collection

I have two site collections inside the same web application; siteA & siteB. now inside siteA i want to display the latest items from siteB. i read a lot about cross-site query , and it seems that ...
0
votes
1answer
31 views

how can i display the latest items from another site collection

I have a web application, with three site collections . and i want inside my team site to be able to display the latest pages that have been added to my enterprise wiki site collection. so what are ...
1
vote
0answers
20 views

how to add WebControl to my page layout

I want to add the following code to my page layout to fix a bug in SharePoint 2013:- [ToolboxData("<{0}:CustomValidationRequiredFieldsOnPage ...
0
votes
1answer
23 views

Does site collection backup , also backup any custom web parts

I have created a custom web part inside my visual studio 2012, and i publish it to a site collection. now i have backup the site collection to move it to another server. but my question is, if I ...
1
vote
1answer
37 views

Webpart - Get user ID of user profile

I am going to create a webpart located in user profile page. That webpart should get the user ID of user's profile. For example, I login as user A and access to profile of user B, the webpart located ...
1
vote
1answer
49 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
27 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
43 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
83 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
198 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
102 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
42 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
37 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
22 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
46 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
31 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
462 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
844 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
137 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
50 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
66 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
326 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
187 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
72 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
483 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
256 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
437 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
113 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
62 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
33 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
327 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
52 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
99 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
757 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
133 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
59 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
93 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
102 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
669 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
67 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 ...