Skip to main content

Questions tagged [user-controls]

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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
2k views

Force browser to clear cache when changes has been added or updated in Visual web-part control file

I am working on visual web-part (SP 2016 on-prem) and it's control (ascx) file has HTML, CSS and jQuery code. When I made any changes inside it, then changes are not reflecting at end user's or client ...
8 votes
1 answer
2k 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="...
4 votes
3 answers
19k 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="...
0 votes
1 answer
172 views

SharePoint 2019 visual web part user control performance issue

We are experiencing some performance issues with a new SharePoint 2019 project containing some custom visual web parts and user controls (farm solutions) which have been migrated from an old ...
0 votes
1 answer
873 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 ...
6 votes
3 answers
10k views

adding link to suite bar in sharepoint 2013

I have followed the following liks to add custom links to sharepoint 2013 suite bar. Link http://www.learningsharepoint.com/2013/02/10/addremove-links-in-top-suitebar-skydrivesitesnewsfeed-in-...
0 votes
1 answer
50 views

Blocking Upload button on a modern site

I have no access to SPFX, or any dev tasks , else this would be breeze. Has anyone at all successfully blocked the upload button and new button (not to be even seen) and allow a user to edit the ...
18 votes
4 answers
11k 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 ...
2 votes
1 answer
2k views

How to edit a SharePoint 2010 ASCX file without having to WSP Deploy?

I have deployed an ASP.NET control in a wsp package. I would like to add some custom JavaScript and HTML to the .ascx file. Nothing that would need a recompile and re-deploy. Where is the actual ...
1 vote
1 answer
1k views

How to add a GridView to a Visual Web Part?

I'm new to SharePoint and am developing a simple World Clock Visual Web Part, following this blogpost from SharePoint Hero. In the blogpost the instructor describes adding a GridView to the Web Part, ...
0 votes
1 answer
236 views

How to restrict user from submitting a form twice in sharepoint?

I'm working on a sharepoint forms And I need to block edition for users after they submitted a due date (data format), but I don't know if sharepoint allows it Someone knows how can I do it?
0 votes
1 answer
47 views

Default control of user profile

I want to use user link in my aspx page. How to reproduce default sharepoint profile/user link? Link control examples on pictures: on hovering
1 vote
0 answers
271 views

Checkbox with User Stamp when changed

I am still a beginner in SharePoint and am looking for some guidance (I can do this in Excel, but can't figure out how to do it in SharePoint). FYI - I am stuck using SharePoint online (not ...
3 votes
1 answer
190 views

Customizing the ListForm template in Visual Studio

I'm trying to customize the ListForm template used in the webpart that displays information about a list in the EditForm.aspx, NewForm.aspx and DispForm.aspx pages I want to add 2 buttons within ...
0 votes
1 answer
293 views

code can't find GridView Controls

I have some code and it is unable to take the values entered from a dropdown list or textbox and output them to a SharePoint List. here is the code try { SPWeb web = ...
5 votes
1 answer
22k views

Calling the SP.UI.ModalDialog.showModalDialog method

My SharePoint solution has a userControl that Register a js block string getJS(string title, string htmlContent) { return (string.Format(@" ExecuteOrDelayUntilScriptLoaded(function (...
2 votes
1 answer
104 views

Show hide User Controls in a webpart or switch between webparts

How we can achieve below scenario in SharePoint 2013,I am confused where to start: I have webpart which will do login functionality based on list, once user Logged success I need to show a List Items(...
2 votes
0 answers
40 views

Problems with creating custom UserControl in SharePoint 2010

I have SP2010 project and want to create a custom menu using custom UserControl (I have a working example in another project but don't have access to a developer who made it). I found a few guides ...
1 vote
1 answer
1k views

Use a RadioButtonList update list columns?

Does anyone know if it's possible using SPD w/ MOSS2007 to use a RadioButtonList value to update columns in a list using a custom insert list form without binding the asp:RadioButtonList on page load, ...
0 votes
0 answers
235 views

cannot access public properties of one userControl (FirstControl.ascx) from another UserControl (SecondControl.ascx) in sharepoint

I have created a userconrol named FirstControl.ascx and SecondControl.ascx in Sharepoint. Both the controls automatically created under CONTROLTEMPLATES\MySolution\.. folder Within SecondControl.ascx ...
1 vote
0 answers
18 views

How do sessions interact with each other?

I am writing a web app for SharePoint 2013 and am running into some interesting behavior. Basically, I am making a series of web requests, but first need to store those in a Dictionary for use later. ...
1 vote
1 answer
98 views

How to call sub web recursively?

I`m making a treeview to show Site levels. When I try to retrieve sub webs, it returned only 1 subwebs. So I searched google, and they told me use recursion. But I`m not good at it, please somebody ...
1 vote
1 answer
638 views

why does clicking action of button from SharePoint user control refresh/reload the entire page?

I Am creating a SharePoint user control,in which I have to use buttons and the c# code so I used asp:button but when am deploying control on page to test then and after clicking on button this click ...
0 votes
1 answer
67 views

Why does my UserControl break MDS (Minimal Download Strategy)?

I've created a user control in a SharePoint 2013 farm solution, and added it to the AdditionalPageHead control. <Control Id="AdditionalPageHead" Sequence="90" ControlSrc="~/_ControlTemplates/15/...
0 votes
1 answer
265 views

how to use .config file's data in sharepoint user controls .ascx.cs file

here am trying to create one sahrepoint reusable control for which i need to pass some data which suppose to be in .config file, e.g here am sending mail from sharepoint control and i need to pass ...
0 votes
0 answers
74 views

the app.config file is not getting include in sharepoint user controls files

here am creating one sharepoint user control in which I need to use some data which I am putting in app.config file and trying to use that in in ascx.cs file but that is not accessible any how,does ...
1 vote
0 answers
117 views

Read Data of user Control in sharepoint visual web part

I developed an user control and added that user control in my visual web part multiple times. Three times manuallay and then dynamically. I can fetch the data of the user control which i have added ...
1 vote
1 answer
147 views

Is there any SharePoint Control to open document library in browser popup

I'm trying to open document library in browser popup window so user can select document from it. Is is possible to open library in Popup window? Is there any SharePoint control to open document ...
2 votes
2 answers
9k 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
1 answer
321 views

Sharepoint 2010: Upload multiple files in Shared Documents

I would like to upload multiple files in Sharepoint "Shared Documents" with user control this is my ascx : <asp:FileUpload ID="fileBrowse" runat="server" /> <asp:Button ID="fileUpload" ...
3 votes
2 answers
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 ...
1 vote
2 answers
65 views

Determine user if the user has a pending request

I have Leave Form that is created in InfoPath and Published it to sharepoint 2013. My task is to determine if the user/employee has a Pending Leave request and not allowing the user/employee to ...
1 vote
3 answers
56 views

Restrict user to create leave request with other employee

I have Leave form that is created from InfoPath and Published it to SharePoint 2013 site. This leave form, the user/employee will enter the employee number then it will appear the employee's details. ...
2 votes
4 answers
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 ...
1 vote
0 answers
70 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
2 answers
72 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).
3 votes
1 answer
152 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
0 answers
69 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. ...
3 votes
2 answers
3k 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
1 answer
77 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
1 answer
634 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
4 answers
15k 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 ...
0 votes
1 answer
31 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
1 answer
60 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, everything ...
0 votes
1 answer
2k 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
1 answer
52 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
1 answer
113 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
1 answer
354 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
1 answer
879 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
1 answer
708 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 ...