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

learn more… | top users | synonyms

1
vote
1answer
559 views

Content slider in jQuery doesn't function properly in webpart

I have created a test HTML page that contains the code for the web part in question. From the test page, I can use the scrolling feature just fine as it works as expected. When I take the same code ...
1
vote
1answer
251 views

Display the actual attachments(Image) in Announcements list?

I have a custom web part on my home page pulling data from the announcements list. When a user clicks on the Title (I have created it as a link) it directs to this page: I would like to modify the ...
1
vote
2answers
715 views

Share Data Between Visual Web Parts on different pages

I have a need to share information from Web Parts on one page, with Web Parts on a second page. SharePoint does not have a default Session State, and let's say for arguments sake I cannot enable ...
1
vote
2answers
332 views

Getting ECMAScript Client OM Intellisense to work in ASCX/JS

I can't for the life of me get intellisense working for the Client OM. It seems to work on another box I have tried so I'm wondering if I have found some kind of bug/configuration issue. I have tried ...
0
votes
1answer
528 views

Localize a sandboxed visual webpart

I am trying to localize a sandboxed visual webpart (part of the SP2010 development powertools released by MS), but as soon as I add <%$Resources:RESXFILE,RESOURCEKEY%> to for instance a ...
3
votes
2answers
2k views

Page.ClientScript.RegisterClientScriptInclude in Sandbox?

I'm trying to use jQuery in a Sandboxed Visual WebPart (2010): protected void Page_Load(object sender, EventArgs e) { string jQuerySrc = Page.ClientScript.GetWebResourceUrl(this.GetType(), ...
0
votes
4answers
492 views

How to know if JS file has been registered in a visual web part?

Let me explain the situation: I have a Sharepoint 2010 solution in VS that contains: Some Model classes A LINQ-to-SQL data context A WCF REST service 3 Visual web parts The web parts calls some ...
3
votes
1answer
798 views

Setting the DisplayFormURL of a CalendarView item to an absolute URL, SPCalendarView control

Background: I have a WebPart that makes use of the SPCalendarView control and in it I add items (events) dynamically from different Calendar lists from multiple sites. like this (please note that I ...
0
votes
1answer
675 views

“LinkTitle” column from event list dose not render when added to a repeater control?

I have the following code to render the event Titles (the LinkTitle Column) in a custom web part: <asp:Label ID="Title" runat="server" CssClass="titleStyle" ...
0
votes
1answer
313 views

How do I retrieve the “Title (linked to edit)” column from event list to display in my custom web part.

I am creating a visual web part to display the calendar events in the form of an events list with custom css. The web part will be on the home page of my site. Here is what I have right now and it is ...
1
vote
2answers
2k views

Access denied in Sharepoint 2010 HTTP handler (.ashx)

I've developed a Visual Web Part for Sharepoint 2010 that includes an HTTP handler for some AJAX functionality. I followed this guide to accomplish this. I've createad a brand new SP 2010 web ...
0
votes
3answers
8k views

Cannot connect to the Sharepoint Site from Visual Studio 2010

I'm new to Sharepoint. I'm trying to create a simple webpart using Visual Studio 2010 but when I try to validate my Sharepoint Server (both VS 2010 and Sharepoint are present in two different system - ...
2
votes
2answers
2k views

Is it possible to use a DLL in a webpart that does not have a strong name?

My Sharepoint project has a webpart, which references dlls without strong names, which in turn further reference other dlls without strong names. Is it possible to add these dlls to sharepoint ...
0
votes
1answer
650 views

Rendering IMAGES (attached to announcement list) in my custom web part?

Please bear with me as I am brand new to the whole sharepoint world. I want to be able to display images that have been attached to OOTB announcement list in a custom visual web part I am trying to ...
1
vote
0answers
219 views

Flexibility to edit a webpart page via an iframe

I'm working on a project in which I'll be using a couple iframes. It's going to be a webpart which will display some custom system pages in iframes. One of my goals is to see if it'll be possible to ...
1
vote
2answers
2k 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
521 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 ...
3
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
875 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
542 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
791 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
124 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
148 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
247 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
5k 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
774 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
223 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
242 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
4answers
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
652 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
4k 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
57 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
672 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
589 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
339 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
568 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
567 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
275 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
491 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
2k 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
871 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 ...