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

6
votes
1answer
1k 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" ToolTip="...
2
votes
4answers
2k views

ASP.Net Validators part of Custom control in WebPart

Custom control has 6 buttons in which 5 of them have CausesValidation = false, the one remaining button ( lets calls it as "SUBMIT") which cause validation. Edit: Validators and Submit button are ...
2
votes
2answers
6k views

How to put custom user control on page layout

How can I add a custom user control to a page layout? I have some custom user control developed. I want to place it in a custom page layout. So it will be in every page instance of that layout.
0
votes
0answers
14 views

Error on Task User Control when Loading Data

private void LoadData() { try { if (SPContext.Current != null) { SPList taskList = SPContext.Current.List; SPListItem task = ...
1
vote
0answers
13 views

Sharepoint User Control can't search user by Japanese kanji name when type only 1 character

I'm having a problem with search function of user control in Sharepoint. User needs to type kanji name in this field to search for users. If user inputs more than 2 Japanese characters, the search ...
0
votes
2answers
31 views

How to change languages in SharePoint 2013

I would like to change languages on a SharePoint page. I have already translated the page to different languages, and I would like to swap between them by a button selection (or similar technique).
6
votes
3answers
6k 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 http://www....
3
votes
1answer
37 views

Disable/Hide Sign in as a different user

Need help in disabling or hiding ''Sign in as a different user'' in SharePoint site.
1
vote
0answers
30 views

Problems with SharePoint DelegateControl

We have created a Delegated control for People Picker. Implementation Details: We have a ascx control which is using jquery Select2 plugin. This control is calling some webservice to get details. ...
2
votes
2answers
294 views

Is there a way to show the Key filters section “MetadataNavKeyFilters.ascx” inside my enterprise wiki pages (not only on the list view)

I am working on an enterprise wiki site collection inside sharepoint server 2013. and i have enabled metadata navigation & filtering for the wiki pages list . Now when i click on any list view i ...
0
votes
1answer
13 views

Infopath Get more then one user by User Picker

How Could I get more then one person in infopath, by userPicker How could I get more then one user in Infopath?
1
vote
1answer
422 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 ...
5
votes
4answers
10k views

Create SP People Picker on the client-side

I would like to know if there is a way to generate a SharePoint 2010 People picker control just with JavaScript. Imagine that I am doing a Windows 8 App, I would like to create that control ...
2
votes
2answers
1k views

How to consume a custom sharepoint web service in a sharepoint user control

I've created a custom web service in SharePoint which works fine, I'm trying to use this web service in a user control but get missing assembly reference error, I've copied the webservice dll in GAC ...
0
votes
1answer
24 views

Hiding a Task List

I would like my users to be able to click a link straight to a new task form, then submit, but never see the actual task list. I want to be the only one that can ever view the task list and especially ...
0
votes
0answers
17 views

Do custom InfoPath User Controls absolutely have to be registered with the COM interop?

Is it possible to design a custom User Control using C# in VSTA for InfoPath without registering it with the COM interop? It's not a control that I'm going to use on any other form, but I have a very ...
0
votes
0answers
37 views

MetaTag adding to page head in user control

I have a problem with adding meta tag to the page header. If I try to add in OnInit event, Page.Header is null so I can't add new control to it. If I try to add it to other events (OnLoad, Page_Load,...
13
votes
4answers
8k 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 ...
0
votes
1answer
25 views

Master page break when setting IIS Permissions

While trying to set Permission to a site through IIS Console Manager, I notice that When someone jump into the web site, some Master controls break out. If I remove the Security setting, ...
0
votes
1answer
53 views

How to set the release date of a post in SharePoint?

We wish to post something to the SharePoint website, e.g. an announcement, a calendar schedule, etc. But we do not want users to see those posts until the release date. Is there a way to set ...
0
votes
1answer
34 views

Upgrade user control

We have a SharePoint 2010 project which we are trying to uprgade to SharePoint 2013.I am not familiar with sharepoint development. How can I upgrade user controls
0
votes
1answer
23 views

How to manage a Exception - UserControl.ascx does not exist - After Migration

I have got a problem with exception UserControl.ascx does not exist on context. It making me after migration from Sharepoint 2010 to Sharepoint 2013. How to solve this problem, please help: How to ...
0
votes
1answer
94 views

Any way to access web part controls/HTML content for a publishing page in server-side code

I'm in a situation where I want to grab the web part controls and/or HTML content of the controls for a publishing page, and format the content before it is rendered. How can I go about this? I've ...
0
votes
1answer
161 views

How to redirect pages in a user control?

Can someone tell me how to add several pages in a user control .ascx, I need to redirect from a page to another. How to do that? Should I add page.aspx to the user control?
1
vote
1answer
247 views

How to call a user control in a client web part

I'm trying to call a user control (.ascx) in a client web part that I've created, knowing that I need to do that in a provider hosted app. Can someone give me a helpful tutorial please? What should I ...
2
votes
3answers
977 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 ...
0
votes
1answer
96 views

Specify user access control by URL in SP 2013

I'd like to specify permissions for a group of users for a URL in Sharepoint 2013. For instance, permissions for the URL at www.mysharepoint.com/wiki: 'Administrator' group can edit wiki at www....
0
votes
1answer
34 views

User control optimize code

I have a SharePoint list with data. A user control is there which fetches data from this list and displays it in the SharePoint page. Now on every page refresh the list is getting hit which is ...
0
votes
1answer
55 views

Enable the option to rightclick on welcomemenu links so I can open them in a new tab if I want to?

Is this possible? I have created a custom controltemplate and want the url here to have the option to be opened in a new tab. (right now you cant rightclick on the link at all?) my control: <?xml ...
0
votes
1answer
45 views

Please suggest me controls for weekly view of calendar

I want a control like to get weekly view of calendar in boxes.User need to be navigated to another week and default view is current.I don't know how to achieve this.I tried calendar weekly view.But ...
2
votes
1answer
34 views

Custom Control to SharePoint Page Layouts

I have a custom user control.I want to add the following code at the time of activating feature in page layout. <%@ Register Tagprefix="MyControls" Namespace="MyControl" Assembly="MyControls, ...
0
votes
0answers
542 views

Jquery Document Ready function is not firing in User Control - SharePoint Project

Here is my code : <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class=...
0
votes
2answers
303 views

Unrecognized tag prefix user control

I'm create default webpart and creat default user control, drug and drop control to designer on web part and it generate code: <%@ Register Src="~/_controltemplates/15/InfoTable-SP2013WebPart/...
0
votes
2answers
339 views

I need help in adding a web control to a page layout

I am trying to follow the steps described inside the following link , which mainly require adding a web control and then reference it from a page layout:- http://www.itidea.nl/index.php/what-about-...
0
votes
2answers
536 views

Sorry, something went wrong Could not load file or assembly

I was reading this link which provide a solution to a redirect problem inside my SharePoint enterprise wiki site collection:- http://www.itidea.nl/index.php/what-about-you-must-fill-out-all-required-...
1
vote
1answer
2k 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 ...
0
votes
0answers
63 views

Can't access user control Public Methods in SharePoint application page

I have an user control say test.ascx. I have added this to my SharePoint project under control templates section. I registered this user control in my application page. The Problem is I cant access ...
2
votes
3answers
7k views

the file '/_controltemplates/.ascx' does not exist

I am making a visual web part which is referencing a user control. The code in SharePointProjectItem.spdata is given below. <ProjectItemFile Source="ExportUserControl.ascx" Target="...
1
vote
0answers
100 views

how to add WebControl to my page layout

I want to add the following code to my page layout to fix a bug in SharePoint 2013:- [ToolboxData("<{0}:CustomValidationRequiredFieldsOnPage runat=server></{0}:...
0
votes
2answers
478 views

Control level get current user, site and web

I have inherited fixes and enhancements on a SharePoint 2013 site and I'm a complete SP noob. I have a user control (.ascx file) that lives in the ControlTemplates folder that is referenced on a ...
0
votes
1answer
437 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
460 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
1k 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
846 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 (http://...
0
votes
1answer
817 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
4answers
1k 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
216 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
170 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
300 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 SPUtility....
0
votes
1answer
205 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]> &...