Tagged Questions
0
votes
2answers
46 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
2answers
184 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
266 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
62 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
480 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
239 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
378 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
63 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
218 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
61 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 ...
2
votes
4answers
464 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
133 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
7k 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
2k 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
748 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
122 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 ...
4
votes
3answers
811 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
1k 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
367 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
779 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
1k 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
2k 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) ...
0
votes
2answers
2k 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
325 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
294 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 ...
1
vote
2answers
1k views
