1
vote
0answers
14 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
0answers
20 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
0answers
25 views

Tool part - Add Term store picker control

I'm creating a web part which consumes terms found in a given term set. I got this working, but now I want the term set value to be configurable in the tool part. What's the control (if there is one) ...
0
votes
0answers
42 views

Invalid file name when Asset dialog opens from AssetUrlSelector

I'm getting the an exception when I put an AssetUrlSelector in a web part and then try to select an asset from it. The exception occurs immediately upon opening the Asset Select Dialog window. ...
1
vote
1answer
64 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
2answers
34 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 ...
2
votes
1answer
177 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
79 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
32 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
1answer
138 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
3answers
734 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
3answers
240 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
3answers
1k 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
2answers
66 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
3answers
2k 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
3answers
525 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
2answers
1k 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 ...
0
votes
1answer
81 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
2answers
301 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
1answer
74 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
4answers
720 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
1answer
174 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 ...
2
votes
1answer
13k 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
2answers
3k 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
1answer
1k 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
1answer
155 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
3answers
1k 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, ...
0
votes
2answers
2k 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 ...
4
votes
3answers
444 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; ...
1
vote
4answers
1k 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
1answer
2k 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 ...
1
vote
2answers
4k 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
2answers
5k 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 ...
1
vote
1answer
2k 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
4answers
380 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
2answers
301 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 ...
3
votes
2answers
2k views

Difference between Webparts and user controls?

Difference between Webparts and user controls?