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.
18 questions
14
votes
2
answers
15k
views
Programmatically add JS/CSS to pages
I've created a Visual Studio SharePoint 2010 solution with an ASCX that adds some JavaScript files and CSS to the head of each page; this is based on this article. When I deploy the solution, it adds ...
8
votes
2
answers
8k
views
How do I add a custom control to the My Site person.aspx page?
I have created a server control and want to place it in the person.aspx page on the My Site however do not want to edit the page through SharePoint Designer but want to edit the file itself from the ...
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 (...
1
vote
2
answers
2k
views
Couldn't find any way of displaying a message box in Visual Webpart 2007 (User Control)
I almost tried everything I could to display a nice message box in user control (.ascx) or code behind, but I failed miserably,
Can anyone find me a tutorial in context to what I need and will 100% ...
0
votes
2
answers
6k
views
Adding multiple controls to AdditionalPageHead
My question is regarding the delegate control AdditionalPageHead, as we know it allows multple controls to be loaded.
My questions are:
How to add multiple controls?
I want that the different ...
7
votes
3
answers
16k
views
SP2013: Adding a custom usercontrol to masterpage using Design Manager
I created a custom masterpage using the SP2013 Design Manager. I also created a SharePoint solution in Visual studio 2012 with a custom usercontrol (ascx) and custom webparts.
The masterpage works ...
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-...
5
votes
1
answer
1k
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 xmlns="http://schemas....
3
votes
1
answer
4k
views
Customize Quick Lanch navigation
I have to create web control that can be placed to master page. This control should display Quick Launch navigation from web that is defined in control properties. Also this page should contain own ...
3
votes
1
answer
3k
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 ...
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 ...
2
votes
2
answers
256
views
Creating Custom List Forms for Creating, Editing, or Displaying a List Item
I'm following this article (as well as different MSDN pages) and trying to add some custom template forms to my content type.
I think I'm doing all by the book, but for some reason wont deploy my ...
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.
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.
...
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 ...
0
votes
3
answers
1k
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
3
answers
4k
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
1
answer
56
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 ...