Visual Web Part is a Web Part built using a User Control (.ascx)
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 ...
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 ...
6
votes
1answer
106 views
Protect wsp file from Reverse Engineering
How to protect wsp file so no one can read my source code. When we change wsp file extension from wsp to zip, it gives all dll file and this dll can be extracted from .net reflector and get all source ...
4
votes
2answers
1k views
Create a custom error page to redirect to instead of generic AccessDenied.aspx?
When a user has not been given permissions to a particular site they receive the ugly "Error: Access Denied" page.
Is it possible to capture this on one particular team site (via custom webpart) and ...
4
votes
1answer
431 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 ...
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 ...
3
votes
4answers
281 views
Problem with Visual web part
Good day! I have an event handler that, when you add a document to the library redirects the user to a web form with the parameters of the document. In the web form, it displays the current user in ...
3
votes
1answer
595 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 ...
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
1answer
118 views
Error: Sharepoint 2010 Web Part appears to be causing a problem. Invalid temp directory in chart handler configuration
I have a sp2010 website where I am trying to use a network path for the images as I have a WebFarm which is loadBalanced using CISCO ACE appliance hardware (without IP Stickiness). The reason I am ...
3
votes
1answer
128 views
Why Microsoft.SharePoint.WebControls over System.Web.UI.WebControls? [closed]
I am building visual web parts for SharePoint 2010 Foundation, using ASP.NET 3.5 in Visual Studio 2010. For those who are new, these are like making a custom "normal" .net control that you can drop ...
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 ...
2
votes
2answers
2k views
Difference between WebPart & Visual Web Part
I'm not sure how Visual Web Part is different from the actual Web Part in SharePoint 2010.
Thanks!
2
votes
2answers
335 views
How to set visual webparts to load one after - another sharepoint 2010
I have a webpart page which have 2 custom visual webparts. When i set the debugger point on both the page loads of the webpart the 2nd visual webpart debugger is hit...that makes me think the 2nd ...
2
votes
2answers
642 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 ...
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(), ...
2
votes
1answer
486 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 ...
2
votes
1answer
240 views
Show asp.net webpart elements based on user permission level?
I want to do the following:
I have a webpart and two users (not in groups, though, because for a reason I don't understand there are no groups in the productive environment here ;) ).
One stands ...
2
votes
3answers
421 views
How to create and write xml file in sharepoint layout folder using visual studio(Programatically)
How to create and write xml file in below url using visual studio(Programatically).
web.Url + "/_layouts/MyPoject/Generated.xml"
I want to generate xml programatically inside MyProject Folder.
...
2
votes
3answers
294 views
How to change active directory password from webpart?
How to change active directory User Account Password using code?
2
votes
3answers
502 views
Retrive data using Caml Query Join Operation
How can I retrieve data from two SharePoint List using Join CamlQuery ?
2
votes
2answers
565 views
sharepoint webpart property disappear after a day (C#)
I developed a custom webpart with a webpart property with some textboxes and it works partially.
If I deploy the project, the written text in the property is away. This is ok.
But my MAIN Problem ...
2
votes
1answer
252 views
Send emails to multiple recipients via contactform webpart
Happy new year everyone,
so I'm creating a contact form webpart for my event management system at the moment which has a checkbox "send to all attendees". I'm using the SPUtility.SendEmail method to ...
2
votes
1answer
153 views
Visual Web Part vs Visual Web Part (Sandboxed)
While I was creating a visual web part in Visual Studio 2010, I also saw an option to create Visual Web Part (Sandboxed) under Visual Studio Template Gallery.
I need to know how does a Sandboxed ...
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 ...
2
votes
2answers
481 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:
...
2
votes
1answer
39 views
How to Retrieve the Data from an Individual Blog Post
I am trying to brand a blog post according to our standards, and to do that I have simply created a custom visual web part to take the place of the SharePoint default. What I am wondering is how am I ...
2
votes
1answer
338 views
Adding Report Viewer Control on Custom Web Part ASCX Control
I am trying to use Report Viewer control in one of my custom web part (on ascx) of SP 2010. As I drop the report viewer control on my ascx it register its assembly on top with assembly version ...
2
votes
3answers
343 views
Issue with Sharepoint DateTimeControl
DateTimeControl is inside grid and i bind grid inside !ispostback section, on row databound of grid i find that datetimecontrol and disabled it.
when button click(outside of grid) DateTimeControl ...
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 ...
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 ";#"):
...
1
vote
4answers
328 views
Refreshing page or making it to respond after downloading the file. All happening in Webpart
I'm having a Visual Webpart that allows user to select Managed Properties and find out what is stored inside it. The result is displayed inside a gridview which he/she can export it to excel.
It is ...
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
2answers
519 views
Show User List (GridView?) on Button Click in new Popup
Hi there and thanks in advance :)
So, my use-case is:
I have a visual webpart on top of the DispForm.aspx of a custom list for events.
I have another List called "Attendee List" where attendees are ...
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 ...
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 ...
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
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 ...
1
vote
2answers
211 views
How to send alert notification when perticular field is changed
How to programatically send alert notification to perticular user when perticular field being changed.
any solution ???
Thanks.
1
vote
1answer
477 views
Use a querystring parameter in a CAML Query
I want to pass a parameter between two separate web parts I am developing. In my 'Detail' webpart i need to build a CAML query to display the correct profile based on their name.
pdquery.Query = ...
1
vote
1answer
56 views
Web Part Resources e.g. Images and Scripts [duplicate]
What is the best practice for including resources such as Images / Stylesheets / Scripts in a custom visual web part (built with Visual Studio)?
1
vote
1answer
672 views
how to Render Controls from CodeBehind into a specific Panel
I'm in the process of working thorugh Microsofts video tutorials for developing on Sharepoint. My actual small project is to create a visual Webpart which displays a list of all registered users with ...
1
vote
1answer
172 views
Permissions to write into but not view a list?
I have a custom web part on my home page that is essentially a textbox and a button for submitting suggestions.
The suggestions are written to a custom list named "Suggestions".
Now, I would like ...
1
vote
1answer
702 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, ...
1
vote
2answers
502 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
986 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
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.
1
vote
1answer
530 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: ...

