Web parts are ASP.NET controls that can be added to web part zones.
2
votes
2answers
3k views
UpdatePanel with SharePoint 2010 web part
UPDATE
protected override void CreateChildControls()
{
if (!this._error)
{
try
{
base.CreateChildControls();
...
2
votes
4answers
3k views
Content rotator for SharePoint lists
I'd like to build a content rotator web part for SharePoint 2010 to display list information. I'm working with the ever-popular AnythingSlider. A couple of questions:
How would I let the page author ...
2
votes
1answer
466 views
Pass list item metadata to filter for document library
looking for a way to filter a document library based on metadata from an item in a different library.
For example I would have two web parts on a page , selecting on in item in library one would ...
2
votes
1answer
357 views
Do connectable webparts need to be in the same project?
I've found two tutorials that I'm looking at:
http://msdn.microsoft.com/en-us/library/ms469765.aspx
http://mstecharchitect.blogspot.com/2010/04/creating-connectable-web-parts-using.html
But both ...
1
vote
1answer
543 views
SPLimitedWebPartManager throwing “File is not checked out” error on AddWebPart and DeleteWebPart
I'm writing a powershell function to add custom webparts (i.e. not Out Of The Box webparts such as ContentEditor) to publishing pages on a SharePoint Server 2010 site. I encountered a frustrating ...
1
vote
1answer
118 views
default custome webpart became static on custom site page
I have created a custom site page in sharepoint 2010 and added the following code to it
<WebPartPages:WebPartZone runat="server" FrameType="TitleBarOnly" ID="Main" Title="loc:Main" >
...
1
vote
1answer
182 views
SharePoint 2010 and ASP Profile Provider
We have web application with SQL ASP Membership Provider, Role manager and profile provider. This web application has both authentication methods: NTLM and forms. Everything works fine.
Problem ...
1
vote
1answer
232 views
Is it safe to store the credentials in the properties of a Web Part?
In my web part, I use a class WebProxy.
The object of this class uses special credentials.
It would be nice to store the credentials in the Web Part properties. And so the user can change them.
For ...
1
vote
2answers
1k views
Using the Now() function in CAML Query?
i am trying to get the 3 most upcoming events from the current date and time (The current data and time refers the time everytime my web part loads. Basically it is not a fixed date and picks up the ...
1
vote
1answer
314 views
Sharepoint Ribbon for view item form going full option
I have a view item form which contains a custom WebPart for displaying that item. I have no issue with that but the ribbon for the display form looks weird: It contains lots of options that don't ...
1
vote
4answers
344 views
How to access a library that is not in same farm. i.e. WebPart is in Farm1 and library is in Farm2
How to access a library that is not in same farm. i.e. WebPart is in Farm1 and library is in Farm2
My company has many farms and now I need to create one WebPart that is going to sit in farm1 but it ...
1
vote
1answer
515 views
Custom web part throws error when I try to add it to page
I am working on a custom web part, that keeps error out with:
A web part or web form control on this page cannot be displayed or
imported. the type is not registered as safe
any time I ...
1
vote
2answers
806 views
Custom properties in XSL
Is it possible to pull the value of a property, from a web part into XSL?
I need to build something similar to the standard Summary Link Web Part, but would like to extend the default control with ...
1
vote
4answers
1k views
Sharepoint SPGridView Data Reneder-SQL
I am tryiny to display a column from SQL Server Databse in Sharepoint Environment. I am using SPGridView for Consistent look and feel.
There is stored procedure called "sp_GetMyApplications" which ...
1
vote
5answers
4k views
Can't edit page after adding custom web part!
When I click on the edit icon nothing happens. No errors, no post back nothing. I ended up turning on the Console in FireBug and it throws this error:
SP.Ribbon.PageState.ImportedNativeData is ...
1
vote
3answers
9k views
“The type is not registered as safe” when trying to add a web part installed by a WSP
I keep getting this error when I try to add a web part that I added through a WSP:
A Web Part or Web Form Control on this
Page cannot be displayed or imported.
The type is not registered as ...
1
vote
3answers
281 views
Possible to have users configure a few values when adding a webpart to a page?
I have a web part that has to does something specific with a list. I would like to have users specify which list they want the web part to use when they add it to a page and not worry about it again. ...
1
vote
2answers
1k views
When to use application pages (aspx) versus web parts?
I'm struggling with this question at the moment...
Basically I'm pulling a set of data out of a DB table related to our LOB application, listing it, and then want to click through from this list to ...
0
votes
2answers
70 views
Multiple Webparts with the same Javascript
I have a site with multiple Webparts. Some Webparts are linking on the same .html file.
The HTML file reads data from a list and displays it in a table by using javascript. My problem is that there ...
0
votes
1answer
110 views
RegAsm : error RA0000 : Could not load file or assembly or one of its dependencies. The system cannot find the file specified
I am new to sharepoint. I try to add the Microsoft.SharePoint.dll to GAC. For that one I have used below code
Code :
`c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319> Regasm.exe ...
0
votes
3answers
470 views
How can I access Controls in VisualWebPart1.cs from UserControl.ascx
I make a Webpart and want to use the controls from the VisualWebpart1UserControl.ascx in the VisualWebpart1.cs. Is this possible?
I wrote following code in the VisualWebpart1.cs:
...
0
votes
3answers
238 views
Webpart properties getting empty after IIS Reset
I created a custom visual user control webpart property for my SharePoint webpart. The property has a textbox which is getting empty after an IIS reset. Can anyone tell me how to solve this issue ...
0
votes
1answer
528 views
Feature Elements File
I'm having some difficulty creating a Feature which contains a Web Part and a links.xml which is processed by the WP code-behind. My difficulty is in understanding the Feature XML config files and ...
0
votes
1answer
246 views
Customizing XLV web part's xslt
I have a list with few views. I've updated one view. Made column to be bold in the list's view.
Then I opened a web part page and added this list (Page Tools -> Insert -> Existing Lists) then opened ...
0
votes
2answers
191 views
Rendering Webpartzone is to large
I have a Div box with an Webpartzone in it. But when i'm rendering my page, the webpartzone is to large. I thought a webpart zone has the width of 100% of his parent container. But not in my case.
...
0
votes
0answers
142 views
Connecting BDC/BCS Web Parts in Deployed Site Pages Module (Visual Studio)
I need to create a deployable site page that uses various BDC Web Parts to display information from a external content type. The web part must retrieve the query value from a QueryString Filter web ...
0
votes
2answers
205 views
Client Object Model Javascript intellisense
I created a new test.js file in the project node of my web part solution with VS 2010 and included the references:
/// <reference path="C:\Program Files\Common Files\Microsoft Shared\Web Server ...
0
votes
1answer
845 views
Forms Based Authentication Users in the SharePoint 2010 People Picker Not Working
I Created custom login page .
I use this code for login
if (Membership.ValidateUser(Username.Text, Password.Text))
{
SecurityToken tk = SPSecurityContext.SecurityTokenForFormsAuthentication(
...
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 ...
0
votes
1answer
688 views
How Do I Get the MySite Images and Full Name of the MySite owner in MOSS 2007 in C#
I am building a simple web part that needs the image that is used from the MySite and the First and Last name of the site owner. I know how to get the current user, I need the name. I am also having ...
0
votes
2answers
4k views
How do get selected item of list?
I have a webpart .I add a listviewbyquary in createchildcontrols and a hyperlink in visualwebpart.
i use this
http://graegert.com/featured/using-the-editorpart-to-create-a-custom-listview-web-part
...
0
votes
1answer
2k views
GridView control - paging with linq. Where is objectDataSource?
I have visual web part with custom logic which retrieves me strongly typed list (not SPList -> .NET list object) which than I bind to gridview which has paging enabled. That works fine. Problem is: ...
0
votes
1answer
3k views
A Web Part or Web Form Control on this Page cannot be displayed or imported
I'm working on Create a Custom Web Part i'm able to do a build and run the new project in debug mode. However, after trying to add the new web part to the site, I get the following error.
"A Web Part ...
0
votes
0answers
75 views
how to validate custom web part property? [duplicate]
Possible Duplicate:
How to validate Web Part property value?
below is a custom prop and a code that i am using for my custom web part, my question is, how to validate a custom web part and ...
0
votes
1answer
149 views
SharePoint Web Part Gallery details of each web part
When using SPWeb.GetCatalog(SPListTemplateType.WebPartCatalog), it returns an SPList which of course contains a SPListItemCollection of the web parts in the web part gallery.
When looping through the ...
0
votes
3answers
491 views
Filter webpart on the Search Page
Basically, I am Sharepoint administrator and my bad time have to create/introduce a Filter webpart on the search page
Expectations are
I have a custom List with 10+ columns (like CustomerID, ...
0
votes
1answer
601 views
Dynamic WebPart connections
I'm prototyping the best way to dynamically connect web parts at runtime. Essentailly, the application will allow for several disparate application groups to create web parts that will be consumed ...



