Tagged Questions
2
votes
1answer
160 views
Visual Web Part Property Validation in Sandbox Solution [SharePoint Online 2013]
How can I validate a custom web part property in a Sandbox solution (SharePoint Online 2013 environment)?
I am throwing a WebPartPageUserException when validation fails, as shown below.
private ...
3
votes
1answer
244 views
Create Password Field in webpart properties
I have created a custom web-part. this web-part have a custom web-part properties. i want a Password field in this property.
How can i do this ?
Any help will appreciated ..
1
vote
1answer
525 views
Custom Web Part Properties in SharePoint 2010 Visual Web Parts-Dynamic Dropdown
I want to have a custom webpart property with a dynamic dropdownlist (data coming from sharepoint list).
I was able to make a static dropdownlist as mentioned here.
Can anyone help me how to make a ...
0
votes
2answers
335 views
Does web part property validation only work for visual web parts?
Suppose I define a web part property like this:
private string _myString = "default value";
[WebBrowsable(true),
WebDisplayName("My string"),
WebDescription("A simple bit of text to ...
2
votes
2answers
700 views
sharepoint webpart property disappear after a day (C#)
I developed a custom webpart with a webpart property with some textboxes and it works partially.
If I deploy the project, the written text in the property is away. This is ok.
But my MAIN Problem ...
0
votes
1answer
785 views
Set web part custom property when adding to page from code
We have a solution that adds All Assignments Web Part from Sharepoint Learning Kit into a page. Here are code snippets we use to do that:
public static string AddWebPartToPage(SPWeb web, string ...