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

0
votes
1answer
17 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
31 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
0answers
17 views

WebPart user control crashes after checking out

I have one unusual problem. I needed to update one of the user controls in my project. In that user control was initialized other user control. The problem is if I do any changes, which checks out ...
0
votes
1answer
17 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
14 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
21 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
54 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
64 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 ...
0
votes
0answers
10 views

Silverlight Application in a .ascx page

Produced a silverlight application which i wish to put in an ascx page such that once produced the control, i can added dynamically to forms when need be. I have searched a lot the web but couldn't ...
0
votes
1answer
33 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 ...
0
votes
1answer
28 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
32 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
42 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 ...
0
votes
0answers
379 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 ...
0
votes
0answers
32 views

Media Web Part Never Show control bar and title bar

I need to put a media webpart in a page, which will automatically play a video in loop mode. However, I don't want the controls bar at the bottom which remains there permanently, and the Webpart ...
0
votes
2answers
281 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:- ...
0
votes
2answers
153 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:- ...
0
votes
0answers
47 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 ...
1
vote
1answer
28 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
2answers
137 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 ...
1
vote
3answers
3k 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" ...
1
vote
0answers
67 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 ...
0
votes
2answers
252 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
0answers
71 views

User control display multiple times in pagelayout

I have created pagelayout which will be add in site on feature activation. I have registered one user control inside webpart zone in pagelayout. I'm also creating page from added pagelayout, the ...
0
votes
2answers
174 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 ??
0
votes
1answer
145 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
151 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
116 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]> ...
0
votes
1answer
205 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
1answer
294 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 ...
1
vote
1answer
381 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
267 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 ...
2
votes
3answers
611 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
75 views

I want to know where are the timer jobs, webparts and user controls saved?

Are they saved in the content db or Layouts folder?
0
votes
1answer
277 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
1answer
409 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
4answers
909 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
2answers
39 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 ...
1
vote
1answer
170 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 ...
2
votes
1answer
445 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 ...
1
vote
1answer
229 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
1answer
55 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 ...
1
vote
1answer
248 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
37 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" ...
12
votes
4answers
6k 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
238 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
1answer
264 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
1answer
118 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 ...
1
vote
0answers
324 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 ...
1
vote
2answers
2k 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 = ...