All Questions
Tagged with user-controls web-part
40 questions
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 ...
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(...
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
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 ...
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
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 ...
1
vote
0
answers
203
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}:...
1
vote
1
answer
292
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
2
answers
40
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
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 ...
1
vote
1
answer
429
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
1
answer
65
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 ...
0
votes
1
answer
439
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
Then ...
0
votes
3
answers
4k
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
3
answers
305
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
3
answers
3k
views
user control losing new values when saving
I have a user control in a web part that pulls data from a SP list and displays it in standard ASP.Net controls. When I save the data, the old values seem to get saved even if I had changed them. I ...
1
vote
2
answers
83
views
sharepoint 2007 webpart question
I created a user control in visual studio I want to deploy to sharepoint 2007. This is my first one and I created the project using the repository pattern and POCO. Does sharepoint support this type ...
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
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 ...
2
votes
2
answers
3k
views
Tutorial for displaying a MessageBox in a WebPart [duplicate]
Possible Duplicate:
Couldn’t find any way of displaying a message box in Visual Webpart 2007 (User Control)
I have been working on SharePoint 2007 for more then a year but still don't have enough ...
0
votes
1
answer
90
views
Getting resources in a Visual Webpart
I want to get resources that are kept at directory in my visual webpart "User Control" for SharePoint 2007:
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\Resources
At the ...
0
votes
2
answers
465
views
Cross Browser Rich Text Editor Control
I may be going crazy over here, but I cannot seem to find a Rich Text/HTML control for SharePoint 2010.
I have successfully implemented an InputFormTextBox, but this only shows up in IE.
I've tried ...
0
votes
1
answer
81
views
Design considerations for uploading documents into MOSS 2007
I am working on a design document for one of my projects in MOSS 2007. There is a requirement to create a custom interface to upload document along with metadata to a document library. I am not sure ...
3
votes
4
answers
4k
views
Which is Better a UserControl or WebPart?
What are the advantages of user controls over WebParts when dealing with SharePoint? Some I can think of are: familiarity, reusability, and development speed. I am planning to implement them in ...
0
votes
1
answer
202
views
Render web-part insinde control
Is it possible to render a web-part inside of a control?
I have a webpart with a certain functionality which I want to re-use on a different page-layout directly.
The first idea would be to extract ...
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
5k
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 ...
1
vote
1
answer
3k
views
What date picker controls are available to enter a date range inside a custom web part?
I have a custom web part that executes a SharePoint search query and displays the results. I'd like to add controls to the web part so that users can select a date range (ie. start date and end date) ...
0
votes
1
answer
188
views
Error when publishing page that has a custom user control on it
I have a custom user control which is a "subscribe form". The user enters name, email etc and selects values from dropdowns I data bind from lists. I can view the page no problem and use the form but ...
6
votes
3
answers
2k
views
.Webs and anonymous access?
We're developing a public facing SharePoint site so it have anonymous access. To be able to run custom web parts that access lists/libraries we need to run with elevated privileges which works fine, ...
1
vote
2
answers
3k
views
When should we call EnsureChildControls()
According to Microsoft,The EnsureChildControls() method is called in order to make sure that child controls have been created.
I see many developers call EnsureChildControls() in CreateChildControls()...
4
votes
3
answers
490
views
Manage some state inside a Sharepoint WebPart
Considering a simple example of a webpart that adds items to a list based on a simple button click:
public partial class MyVisualWebPartUserControl : UserControl
{
private int cont = 0;
...
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 ...
3
votes
1
answer
4k
views
How to import external javascript in a User Control?
I have a code-behind User Control (myUserControl.ascx and myUserControl.ascx.cs) that are in
ControlTemplates/MyFolder/
and, in the code of myUserControl.ascx I need to use some javascript ...
2
votes
2
answers
8k
views
How to add code-behind to a User Control?
I have a User Control (myUserControl.ascx) with the code:
<div id="content">
TEST USER CONTROL
<div>
that is called from a webpart:
protected override void OnLoad(EventArgs e) {...
1
vote
2
answers
9k
views
How to know the path of the ascx in the Page.LoadControl?
I have a Webpart with a "main class" named myClass
public class myClass : Microsoft.SharePoint.WebPartPages.WebPart
and I want to load a ascx file from this class like this
http://www.mojoportal....
1
vote
1
answer
3k
views
SharePoint 2010 : Visual Webpart - Multiple User Control
SharePoint 2010: Visual Studio 2010
I have requirement : i have one web part and using custom web part property i load 4 different user control.
Solution 1 : I created web part and using custom web ...
0
votes
4
answers
458
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 ...
0
votes
2
answers
328
views
WebPart made of user controls
I have a number of custom web parts which have similar functions and properties shared through each of them. Each have a subset of a larger set of functions, rather than redevelop the same controls ...
5
votes
2
answers
3k
views
Difference between Webparts and user controls?
Difference between Webparts and user controls?