Visual Web Part is a Web Part built using a User Control (.ascx)

learn more… | top users | synonyms

1
vote
2answers
1k views

SPCalendarView control, same events are displayed each month in a VisualWebPart UserControl.ascx.cs file

I am creating a custom SharePoint Calendar to pull from multiple SharePoint Calendar Lists. In the markup I have the following: <SharePoint:SPCalendarView ID="EventsCalendar2" width="100%" ...
1
vote
3answers
481 views

Why does this third-party library throw a FileNotFoundException?

I'm in the process of building a custom web part in Visual Studio 2010 designed simply to report the user ID of anyone who is logged in to one of six computers on my office's network. I have found a ...
2
votes
1answer
2k views

How do I retrieve a user's LogIn name through the Created By column of a specific item in a document library

Created By Field Returns the following: 1073741823;#System Account I want the following without string manipulation (i.e. without using substring to remove all of the characters before ";#"): ...
0
votes
4answers
2k views

JQuery in a Visual WebPart won't load on the page with the webpart

Hey I have a bunch of JavaScript/Jquery code that works really well when I use a Content-Editor webpart, but does not execute when I add the same code to the VisualWebPart mark up. I am referencing ...
1
vote
1answer
1k views

How do I Retrieve the choice values of a column in a Document Library

I am fairly new to SharePoint development and as you may all know that it is very basic for one to know how to access fields in a choice column... My problem: I want to access the values of the ...
2
votes
1answer
739 views

How do I set the Default Value of a TextBox ToolPart without using [DefaultValue(“Default Value”)]

Right now I have created a bunch of custom controls in the ToolPart panel and I want to set a default value for one of the text boxes. Obviously I want the value to be editable by the user. I have ...
1
vote
2answers
497 views

How to get FBA users' profile with ASP.NET

I'm getting Windows users' profiles, in my webpart, doing the following: UserProfileManager pm = new UserProfileManager(SPServiceContext.Current); SPUser spuser = web.AllUsers.GetByID(user.Id); ...
0
votes
1answer
729 views

Set web part custom property when adding to page from code

We have a solution that adds All Assignments Web Part from Sharepoint Learning Kit into a page. Here are code snippets we use to do that: public static string AddWebPartToPage(SPWeb web, string ...
0
votes
2answers
122 views

How can i buildi multiple VisualWebparts using VS 2010

Can i create/build multiple Visual webparts in Visual Studio 2010? If yes i do i set up the strcuture? `Will it have seprate feature or does it come under 1 feature? Thanks in advance
0
votes
1answer
147 views

XML Dictionary - how to provision with feature and read it?

I have an visual webpart and I need to populate drop down with content extracted from xml file. How can I provision that XML file with feature and then how can I access it from my codebehind to be ...
1
vote
1answer
238 views

How can I extract the functionality of a OOB Web Part?

OK, this is my question... I need to extract the functionality of the My Links web part and later use it in a new custom web part. If you know how can I do, just say it. Regards.
0
votes
1answer
1k views

Custom Form in Visual Studio and Approval workflow

I have developed a form in Visual Studio 2010 professional as Visual WebPart in which I have the following fields and for the same I have created a LIST with the same columns. Employee ID Employee ...
1
vote
3answers
4k views

How to change default VisualWebPart name

I am new to SharePoint 2010 development and just created a VisualWebPart in Visual Studio 2010 but it added the webpart as "VisualWebPart1". How do I change the default name of it and make it ...
2
votes
1answer
2k views

Cannot add WebPart to master page using SP Designer

I've built a WebPart for a SharePoint 2010 site. I need to add it to one of its master pages (using SharePoint Designer), and when I select it from the WebParts menu I click it but I don't see it ...
1
vote
2answers
720 views

Navigate to other page (Office 365)

I want to navigate from one ASP.NET page to another one (each with a visual webpart) When I click a button on the first page (in my visual webpart of course), I should navigate to the second page. But ...
-1
votes
1answer
219 views

picture load asynchronously

I have a picture that is larger than the viewable area... and I need to add a scrollbar to the picture so that I can load the picture as per the scrollbar. I need to show the picture in a visual web ...
1
vote
0answers
236 views

Getting at InfoPath/form library data using LINQ to SharePoint

I'm teaching myself some basic SharePoint stuff, coming from three-tier ASP.NET, and before that, Java background. I've been trying to figure out how to do things "the SharePoint" way, rather than ...
1
vote
3answers
1k views

Dynamic button not firing its event

I am hoping that someone can help with the following scenario. Basically the error I am getting is that when I click on my dynamicly created button it is not firing its corresponding function. The ...
2
votes
2answers
604 views

VisualWebpart - controls like radiobuttonlist and dropdownlist not firing the SelectedIndexChanged event when inside a repeater datarow

VisualWebpart - controls like radiobuttonlist and dropdownlist not firing the SelectedIndexChanged event when inside a repeater datarow. Any help? Source code: ...
1
vote
3answers
3k views

Getting error “Attempted to use an object that has ceased to exist.” when adding web part

I have created a web part in visual studio, it deploys fine, but when I try to add it to a page I get the following error: Attempted to use an object that has ceased to exist. (Exception from ...
1
vote
0answers
56 views

Retrieving item values from a workflow task dialog box to put in a web part in the same box

I have implemented a workflow and now I would like to develop a web part to be used with the Edit and View forms that are loaded in the modal dialog during, say, an approval task. May I know how do I ...
8
votes
4answers
4k views

Problem with HTTP Handler deployed on Sharepoint 2010

I've developed a Visual Web Part for Sharepoint 2010. I've used VS2010 to do that and tested the Webpart in a testing server using VS to do the deployment. But to deploy it on the production server I ...
1
vote
1answer
630 views

Building a custom web part for SharePoint 2010

I'm interested in building a custom web part for SP2010 that's editable by the page editor via the web part menu's "Edit Web Part" option; specifically, I'd like to start with this: ...
0
votes
1answer
573 views

Custom link button - image dissapearing after updatePanel reload

I created a custom link button control so it can display also an image. Code below: namespace SharepointTools.Controls { [ToolboxData("<{0}:CustomImageButton ...
3
votes
1answer
321 views

Intellisense for Visual WebParts (ASCX) and Custom Application Pages (ASPX) in VS 2010

How can I enable intellisense for visual webparts (.ascx) & custom application (aspx) pages in VS 2010? It would save me a lot of time! Thanks in advance.
3
votes
5answers
2k views

Visual web part and custom web control - can't register

I have created visual web part and copied custom web control which I'd like to use. My control looks as below: namespace AppsListWebPart { [ToolboxData("<{0}:CustomImageButton ...
1
vote
1answer
559 views

Visual web part properties - override drop down list text

I have an visual web part with custom enumeration property which is rendered as drop-down list. I'd like to localize what is displayed in the list, because it's not very informative for the end user. ...
0
votes
1answer
1k views

Localizing ASP markup in webpart issue

In my web part I have an label, which I want to be localized: <asp:Label ID="AppJSTNameLabel" runat="server" Text="<%$Resources:AppListWebPart,NoSelection%>" /> I have mapped Resources ...
1
vote
2answers
1k views

How to Bind Data to Traditional ASP.NET Controls in SharePoint Foundation 2010?

First off, my background is ASP.NET Web Forms. I'm sure this is very simple but I'm quite new to SharePoint. We're running SP Foundation 2010. I'm going to build a WebPart in VS.NET 2010 and deploy ...
4
votes
1answer
543 views

Visual web part - data binder issues

We have couple of lists in our application. Application types is a list which contains information about various applications - name, description and icon (as URL field with image format). Second one ...
0
votes
2answers
271 views

Add newuser with roles to spgroup

i want to add a user to a spgroup with specified roles can any one help to write the code in visual webpart? thanks Naveen
1
vote
1answer
2k views

How to add a custom footer navigation to SP2010 Master Page?

I'd appreciate any suggestion on how to add a custom footer navigation similar to the one found at http://www.washington.edu to a master page? The link doesn't have to be automatically generated as ...
0
votes
1answer
481 views

Sharepoint 2010 Visual WebPart and LinqDataSource

How do I use Linq DataSource in a SharePoint 2010 Visual Web-part. When I type <asp:LinqDataSource there are nothing in the Visual Studio auto-complete. When I run the code I would get this error ...
1
vote
4answers
1k views

Problem with HTTP handler in Sharepoint 2010

I'm developing a visual web part for Sharepoint 2010. This webpart needs to get some data via AJAX. So I went for the HTTP handler + jQuery solution posted here. But I'm getting a problem when trying ...
1
vote
1answer
825 views

How to make jQuery AJAX request with a HTTP Handler in SP10?

I'm developing a SP 2010 Visual Web Part that needs to load some data via AJAX. I found this very helpful article but I'm having some doubts about it. I have the Visual Web Part project, inside I ...
2
votes
1answer
1k views

Visual Web part - async load

I want to create async load of visual web part. Code behind (web part) needs some time to load data so I figure to create that in async way (on page load). Scriptmanager is placed in master page (ajax ...
0
votes
1answer
447 views

On adding a visual web part I get this error “Key cannot be null. Parameter name: key”

I've created a SharePoint 2010 Visual Web Part project. Added some html to the ascx file and deployed it. When I try to add it to my page I get this error - Key cannot be null. Parameter name: key ...
1
vote
1answer
2k views

SharePoint 2010 : Visual Webpart - Multiple User Control

SharePoint 2010: Visual Studio 2010 I have requirement : i have one web part and using custom web part property i load 4 different user control. Solution 1 : I created web part and using custom web ...
6
votes
3answers
2k views

How to asynchronously load and refresh a Visual Web Part?

We have developed a Visual Web Part for Sharepoint 2010 with Visual Studio 2010 (Visual Web Part project template). The web part loads some stuff and shows a list of items. It takes some seconds to ...
2
votes
2answers
725 views

One Visual Webpart Multiple Times On Page (problems saving personalization state)

I have a requirement for building a budget report which has the same key fields for 6 different categories. I have written a visual web part which pulls a listitem for each section and displays the ...
0
votes
1answer
301 views

Prevent duplicate insert on refresh without session?

I'm working on SharePoint 2010 (using a visual web part). Is there any way to prevent duplicate inserts in a list when a page is refreshed using F5, without using session?
1
vote
2answers
251 views

Visual webpart not displaying for anonymous users

I configured my SharePoint application to allow anonymous access and it's working fine. When I add a visual web part that contains just a label to a page and approve it, anonymous users can't see the ...