User controls are custom, reusable controls, and they use the same techniques that are employed by HTML and Web server controls. They offer an easy way to partition and reuse common user interfaces across ASP.NET Web applications.

learn more… | top users | synonyms

1
vote
1answer
345 views

Ajax Calendar Extender Position is not working in SharePoint Webpart

I am using Ajax Calendar Extender, but it is not pop up next to textbox, it is appearing int the middle of the page. Here is the code: <asp:TextBox ID="dtEnginerring" runat="server" ...
0
votes
1answer
292 views

How to change UI of EntityEditorWithPicker?

I have created a custom EntityEditorWithPicker control. And now I need add TreeView control at the left hand of the PickerDialog, when it is shown. But I can't found how to get an instance of ...
0
votes
1answer
56 views

Creating custom top navigation using user control

I want to create a custom user control that will display my own top navigation in my publishing site's master page. I know another option is to use sharepoint's own top navigation and then ...
0
votes
2answers
29 views

Can we add a user control to a sharepoint site page?

I have a application page and had all user controls on it working fine. If i have to create a site page how can i deploy those user controls on the newly created site page ??
4
votes
2answers
517 views

Opening a document in read-only mode using an external control

I have a .Net application that (amongst other things) provides a front end to a sharepoint document library. Users are able to open documents, and I use the Open Documents Control to do so ...
0
votes
0answers
18 views

Tool part - Add Term store picker control

I'm creating a web part which consumes terms found in a given term set. I got this working, but now I want the term set value to be configurable in the tool part. What's the control (if there is one) ...
0
votes
1answer
438 views

Delete a user Completely in SharePoint 2010

Is there a way that when an administrator deletes a user from a SharePoint group the user can be totally deleted? Presently when an admin deletes a user from the group he can still see the user in ...
1
vote
1answer
681 views

ASP.Net Label control's Text property not updating text under button click event

I have developed a small application in SharePoint. I am using custom application page and load .ascx Control over that page under Page_Load() method. In .ascx Control, I have created a small form ...
1
vote
4answers
186 views

Register user controls (ascx) in web.config?

Since ASP.NET 2.0 I usually register reusable user controls in web.config, rather then register it in every page with <%@ Register %> directives. UPDATED See ScottGu's blog for what I mean. Is ...
0
votes
1answer
50 views

asp Update Panel with timer control updates XSLTListViewWebPart

I have used one user control in SharePoint master page which will automatically refresh on every five seconds ( I have used asp Update Panel and asp timer control for doing this) And I have one ...
0
votes
0answers
44 views

How to get a CustomControl into SuiteBarBrandingDelegate with MDS-Feature activated?

I want to add a Navigation to the SuiteBarBrandingDelegate. I created a nicely working solution for this but it doesn't work with the MDS-Feature activated (Minimal download strategy). After some ...
0
votes
1answer
62 views

Security Validation Error

I'm trying to create a spweb in page_load via a control on the site. I get the error "The security validation for this page is invalid". I've got a postback (No GET-Request) and also tried ...
0
votes
0answers
30 views

2010 | Add radio buttons next to a repeating section for each item?

First, let me apologize if I am using incorrect terminology or am otherwise being confusing. I am relatively new to Sharepoint. I am currently automating paper based processed for my employer. We ...
0
votes
1answer
31 views

SharePoint if statements for registering css

In regular old HTMl we are allowed to do the following to use a css file depending on browser versions: <link rel="stylesheet" href="path-to-styles/css/cssfilename.css"> <!--[if IE 7]> ...
2
votes
1answer
160 views

How to upgrade a Visual Studio Project from SharePoint 2010 to SharePoint 2013 (VS 2010 to VS 2012) - For WebParts, MasterPage, AppPage, User Controls

We have a SharePoint 2010 project solution which we are trying to uprgade to SharePoint 2013. This includes webparts, application pages, user controls, masterpage, etc. Foll. is the procedure we ...
0
votes
0answers
38 views

SuiteLinksDelegate links dependent on mySite existance

We currently are using the SuiteLinksDelegate control to disply custom links in the suite bar. Currently, one of the links is to mySite. The powers that be only want the mySite link to appear in the ...
0
votes
1answer
76 views

How to embed OOTB web part in a user control?

I'm planning to create a Visual Web Part. In the Visual Web Part's user control, I plan to embed an OOTB XSLTListViewWebPart, preferably through a declarative manner (in the .ascx). Has anyone done ...
1
vote
0answers
83 views

People picker icons and auto-completion

I am having this problem across different site collections, applications and even farms. When I have a field of the "User" type in a custom list, the default forms that are created by SharePoint ...
0
votes
0answers
16 views

user control onkeydown from SP 2007 to 2013

I m upgrading a search box from SP 2007 to SP 2013, when I add the "onkeydown" in the following line : <INPUT class='form' Type=TEXT id='idDirectorySearchString' size=25 ...
0
votes
0answers
30 views

Invalid file name when Asset dialog opens from AssetUrlSelector

I'm getting the an exception when I put an AssetUrlSelector in a web part and then try to select an asset from it. The exception occurs immediately upon opening the Asset Select Dialog window. ...
2
votes
3answers
67 views

Deleting user permissions from document library instead of site level

I wanted to delete a user permission from ONE of the various document libraries in a SharePoint site. But when i deleted the permission, it seemed to have deleted the user permission at a much higher ...
1
vote
1answer
62 views
0
votes
1answer
75 views

The resource cannot be found - User Control in a MasterPage

I wanted to add a user control to a MasterPage. I added the control to a VS Solution and deployed it. Then I opened the MasterPage via SharePoint Designer and added the following code: <%@ ...
0
votes
2answers
34 views

Custom WebParts that depend on custom lists

I have a web scoped feature that creates List instances based on list-Definitions and i want these lists to be created in a sub-site. I'm running into the issue that the custom web-parts that use ...
3
votes
1answer
401 views

SharePoint List items, UserControls and cookies

I have another task at hand. I need to use cookies to read a title of an item from a custom list in SharePoint. This task is for SharePoint 2010. I have a container set up that will display the ...
0
votes
1answer
91 views

How to access div id (with runat=“server”) on MasterPage via User Control?

We have masterpage with DIV id="new-div". We have deployed a user control on this masterpage. I would like to know how can we access the new-div via the user control? We need to add some css based on ...
1
vote
1answer
66 views

How to prefill user field in custom aspx form?

I have a task to create SP2010 inventory request system based on VS2010. The idea is the requestor creates a request, which contains inventory information and approvers. Approvers is the user field ...
0
votes
0answers
23 views

Store and Refresh DB data in a Session

There's a user control added to the left navigation of a SharePoint 2013 site. The User Control code makes DB calls on each page load. As this is bad, I'm planning to get data from DB and store in ...
1
vote
3answers
237 views

Add user control or web part to every page in a site

I want to have a feature which causes the following to happen everytime any page in a site loads. I need to have a web part or user control which adds information about the current user to the page. ...
1
vote
1answer
63 views

Converting an ASP.NET application into a SharePoint application, need assistance on doubts and good practice [closed]

we have a ASP.NET simple application with custom functionality that performs certain calculations based on data entered in text box and shows output in a label. We would now like to use it in ...
0
votes
4answers
378 views

Javascript error on sharepoint page with search webpart and User Control containing UpdatePanel

I've been trying to find a cause for this error for some time to no avail... We have a SharePoint 2007 site heavily customized in terms of look and feel. In the master page a user control has been ...
1
vote
2answers
3k views

Dynamically add controls to webpart without Postback?

Is it possible to dynamically add controls to a webpart without having a postback for example with AJAX/Java Script/jQuery/Partial Postback within SharePoint? I'm searching for some kind of ...
0
votes
1answer
29 views

Controls has a different layout

I develop a small web part and I noticed that SharePoint display some of my controls differently or more exactly with different font settings. My class is deriving from WebPart and use for example a ...
4
votes
1answer
612 views

How to make a UserControl Minimal Download Strategy Compliant

I have a feature which specifies a custom user control to be added to the AdditionalPageHead delegate control as such: <?xml version="1.0" encoding="utf-8"?> <Elements ...
10
votes
3answers
2k views

Visual Studio 2012. Visual webpart's ascx.g.cs file empty after registering any control

I've discovered a problem when a Visual webpart's g.cs appears to be empty. I'm using Visual Studio 2012 Update 3 and a project for SharePoint 2010. The steps to reproduce the problem: in Visual ...
1
vote
1answer
162 views

How can I do a check if current user is following current site?

I have a usercontrol and inside its ascx.cs file I would like to do a check(if) if current user is following the current site. How can I accomplish that? So far I have done something like this: ...
4
votes
1answer
3k views

adding link to suite bar in sharepoint 2013

I have followed the following liks to add custom links to sharepoint 2013 suite bar. http://blogs.msdn.com/b/findnavish/archive/2013/02/07/sharepoint-2013-customizing-suite-bar.aspx ...
0
votes
1answer
86 views

SharePoint 2010 Visual Web Part development @_parser.AddParsedSubObject LiteralControl WebPartPageUserException

I am using SharePoint 2010 Foundation on a vmware virtual machine. I am using Visual Studio 2012 update 3. I am working on a visual web part project. I have so far in this project only used asp.net ...
0
votes
0answers
86 views

SPCalendarView does not show correct Data

I am creating Web Part & add control of Sp Calendar view. I am showing events from Calendar List.It shows data only for today & previous Date. it does not show data after current date. Also,it ...
1
vote
1answer
125 views

Extract NewsFeed and use in a custom user control

Is it possible to use the news feed control in a custom user control page (ascx) ? I need only the message sender part of the newsFeed, which is displayed in following picture. So that I could send ...
2
votes
2answers
34 views

User Control is is not rendering in pagelayout in MOSS2007

Hi I registerd user control in pagelayout and trying use that but it seem like it not rendering any thoughts %@ Register TagPrefix="sd" TagName="adbanner" ...
0
votes
1answer
113 views

last visited pages of a site

I have a requirement in which I have to show two previously visited pages in breadcrumb. Is there any property from which I can fetch this information?
0
votes
0answers
127 views

An object reference is required for the non-static field, method, or property 'System.Web.UI.Control.Controls.get'

I have created a farm solution inside Visual studio 2012, and i added the following code inside my user control :- namespace CustomSuiteLinksDelegate.ControlTemplates.CustomSuiteLinksDelegate { ...
0
votes
1answer
128 views

Control View based on Current User Role

I am trying to limit visibility to buttons and ability on a user control based on Role on a SharePoint 2010 Site. I get the user from the following code line SPContext.Current.Web.CurrentUser ...
0
votes
3answers
610 views

Putting User Control in Web Part

I'm pretty new to SharePoint but am trying to get the hang of it. What I have been doing is creating ASP.NET web application pages and then deploying those to the SharePoint site. This works and is ...
1
vote
0answers
193 views

Exception when deleting webpart Microsoft.SharePoint.WebPartPages.WebPartPageUserException

I have been looking for any leads on this direction on the web and most of the issues I have found is when they try to add a webpart but I am running across the issue where I am getting an exception ...
0
votes
2answers
53 views

There is an Out of the Box SP ListBox that allows the user to select options and display them on another ListBox?

Basically those are two DropDownLists, but I'm wondering if there's an OOB webpart. Example: Update: I have found a lot of insight in this page, that is a translation of this blog post.
1
vote
2answers
1k views

How to check if current user is member of the current site or above member group, site owner group etc

How can I do a check that looks if current user is a member group or above member group on current site? Above member group I mean site owner group etc.. So far I have done: var currentSite = ...
0
votes
1answer
114 views

“The name 'InitializeControl' does not exist in the current context” in Web Part with custom control

I have a custom GridView control that has pagination built in it. I've used this component many times on Sharepoint 2010 without a problem. Now i'm trying to use it on a Sharepoint 2013 Web Part ...
1
vote
0answers
40 views

SP2013 Community Site - adding custom content to home page

I'm probably missing something basic, but I'm trying to add new user control based content to the Community Home.aspx page within a Community Site. How is that done? I've tried editing the page in my ...