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

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

Infopath 2010 “Get choices from fields in this form” combo box is read only. Why?

I created an Infopath custom form and I want to have a combo box that retrieves its data from other fields in the form (user fills a repeating group in View 1 and then in View 2 I want to display the ...
3
votes
1answer
2k 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 ...
0
votes
1answer
217 views

InfoPath custom forms - Dynamically create controls in the form

Is it possible to dynamically (at runtime) create controls in an InfoPath form? Some background: I have a list for which the new item is a custom form created with InfoPath. It contains some ...
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) ...
1
vote
2answers
192 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 ...
0
votes
1answer
157 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 ...
0
votes
1answer
600 views

Custom link button - image dissapearing after updatePanel reload

I created a custom link button control so it can display also an image. Code below: namespace SharepointTools.Controls { [ToolboxData("<{0}:CustomImageButton ...
4
votes
2answers
550 views

Opening a document in read-only mode using an external control

I have a .Net application that (amongst other things) provides a front end to a sharepoint document library. Users are able to open documents, and I use the Open Documents Control to do so ...
4
votes
3answers
449 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 ...
4
votes
2answers
587 views

Reuse the MiniContactCard from People Matches in SharePoint 2010?

Is the mini contact card, as seen in the People Matches section of a standard SharePoint 2010 search results page, a reusable component easily applied elsewhere? It has all of the bits we want to use ...
9
votes
2answers
8k 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 ...
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 ...
2
votes
1answer
2k views

fully Customized Editprofile.aspx SP2010

I have to customize the EditProfile.aspx page that under the 14 Layouts hive. I know I can add fields in the user profile and make them show in the edit page , but this is a little more that what ...
7
votes
2answers
4k 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 ...
3
votes
1answer
73 views

Template usercontrol hide based on page

Is it possible to hide a usercontrol that I have added to a custom template based on what page I am on. I have several pages that use the template but I only want one page to display the control the ...
1
vote
1answer
434 views

Page lifecycle events not firing for user control on page layout when anonymous user

I'm using SharePoint 2010. I have a custom user control on a publishing page layout. When an authenticated user visits a page that uses the page layout everything works fine. When an anonymous user ...
2
votes
2answers
275 views

Storing farm level data for a web component

I've built a SharePoint user control (not a web part) and am deploying it via Solutions, Features, etc. It's a commercial component and I want to be able to store license information once it's ...
0
votes
1answer
502 views

User control in custom list item edit - when can I see content type of item?

I have a user control I'm using to edit new list items. In my Page_Load event, I am trying to retrieve the Content Type of the new item to use in further logic. But, I'm getting a null reference ...
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 ...
2
votes
1answer
694 views

Overriding GlobalNavigation Delegate control

I have overridden the GlobalNavigation delegate control and have been very pleased with the results. Now I would like to remove my global navigation from application pages that display in iframes ...
1
vote
1answer
394 views

ListFieldIterator doesn't return value of Enterprise keywords

In my project I use ListFieldIterator control to allow users view and change meta data values. I can read values of ListFieldIterator fields with code like this: object value = ...
0
votes
4answers
382 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
1answer
197 views

Developing ASP.Net User Control to be imported to SharePoint MOSS 2007

Apologies if this has been answered, but I could not find a similar question: I am developing a webpart for MOSS 2007. I am using WSPBuilder to built a visual webpart (ascx) and everything works ...
1
vote
1answer
198 views

Refining search results on multi-word names

I have a basic people search landing page setup with the standard webparts for searching: PeopleSearchBoxEx, PeopleCoreResultsWebpart, etc. On the page I make use of the RefineSearchResults web ...
0
votes
1answer
495 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
2answers
618 views

Inherited TreeView control in Sharepoint 2010

I need to inherit the asp.net Treeview for fixing a rendering issue. I am currently trying to accomplish that in an Sharepoint project that also contains various other things like webparts, aspx, ...
1
vote
1answer
356 views

first visit to site loads page twice

I create a new Site Collection within an existing SP Web Application. The new Site Collection is created as a child of an existing Site Collection (the Root Site Collection in the Web Application) ...
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 ...
0
votes
2answers
251 views

Sharepoint - 2010: how to add ajaxified part into standard list

I am new to Sharepoint and nearly completely satisfied what lists can do out-of-the-box. But I have to add new column with ajax autocomplete features. I'm extensively reading documentation, books ...
3
votes
2answers
2k views

Difference between Webparts and user controls?

Difference between Webparts and user controls?
1
vote
1answer
1k views

Unable to resolve The file '/_controltemplates/xxxxxxx.ascx' does not exist.

I have developed a custom user control and loading it in a webpart, the aim to run the webpart from bin with custom policy. I made the WSP Builder generate the CAS policy and it does contain the ...
3
votes
2answers
509 views

Custom User Control and FIPS Encryption Issues

I have created several custom user controls that I added to the Redering templates of some forms in a custom solution for WSS 3. Most of these templates have codebehind and they all are correctly ...
3
votes
3answers
2k views

ASP.NET User Control in SharePoint WebPart

I want to use the Visual Studio designer to make controls for my WebPart... I've been pointed to two approaches that seem ok. First, SmartParts... which I'll look into later. Second was to create an ...
0
votes
2answers
1k views

SpGridView and Get Selected Row Data

I am using SPGridView. I want to fill textboxes with the SPGridview Selected Row Data on a button click event. Does anyone know how to do that? My code: txtCode= ...
2
votes
2answers
1k views

How to consume a custom sharepoint web service in a sharepoint user control

i have created a custom web service in sharepoint which works fine, i am trying to use this web service in a user control but get missing assembly reference error, i have copied the webservice dll in ...
0
votes
3answers
3k views

How to deploy user controls in web application directory?

I'm using wspbuilder and using Return of SmartPart. Return of SmartPart need usercontrols directory in web application root folder. How can I use wspbuilder to create a package that will deploy things ...