Visual Web Part is a Web Part built using a User Control (.ascx)
1
vote
0answers
916 views
Why Sharepoint FormField's ID is parametrized and how it can take different values after its initial creation?
In SPD 2010, on designer surface of a web part page I insert DataFormWebPart by:
"Current Data Source" ("Data Sources Details" Task Pane) --> choose rows --> "Insert Selected Fields As.." --> "New ...
0
votes
3answers
314 views
UserProfileManager in Console Application
I have code that works just fine (visual web part). I had deleted the testing console application, and now I have need for it again. The browser will open up once running the console application, but ...
1
vote
1answer
713 views
Causes of “The Web Part you are connecting from does not allow authoring of connections”
When I add my provider and consumer web parts to a web part page (following Walkthrough: Creating Connectable Web Parts in SharePoint Foundation) I find that the 'Connections' option on my webpart is ...
1
vote
1answer
87 views
How to restore to the smaller size of image control visible at designer?
All of sudden, few hours ago, I started to have a weird problem in all sites of my Sharepoint Server 2010 dev machine.
In any of old and new, built-in and custom WebPart pages of list views, ...
2
votes
5answers
1k views
Adding new webparts to an already deployed solution
I have a webpart project built in visual studio 2010 and it has been deployed successfully to my production environment. I recently had to make some changes to the webpart and also needed to add a ...
1
vote
0answers
90 views
Powerful list filtering
I need to extend the functionality of the default list (specifically for a document library) to include more powerful filtering. This includes being able type free text search and to have filters ...
1
vote
1answer
444 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
197 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
504 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
228 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
398 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 ...
2
votes
1answer
1k 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
385 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
598 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
489 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
234 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
1k 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
5k 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 - ...
1
vote
2answers
1k 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
424 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
175 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
995 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
352 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 ...
1
vote
1answer
1k 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
1k 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
654 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
492 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 ...
0
votes
2answers
348 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
537 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
106 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
128 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
207 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
974 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
3k 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
558 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 ...
0
votes
1answer
297 views
VisualWebPart not stores ViewState properly
ViusalWebPart not retrieving ViewState on Page_Load even if EnableViewState = ture
public uint ItemsCount
{
get
{
if (ViewState["ItemsCount"] != null)
return ...
-1
votes
1answer
195 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
191 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
724 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
483 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
2k 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
53 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 ...
7
votes
3answers
3k 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
533 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
463 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
258 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
1k 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
479 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
943 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 ...
