Tag Info

New answers tagged

0

The scope for user should work, just type the following code attribute when you declare the custom property: [Personalizable(PersonalizationScope.User)] Doesn't matter if a admin user creates the pages and add some webparts, SP will save the webpart properties for each specific user. But the user will need to update the properties for each webpart. The ...


1

You cannot read directly from the webpart. But you can however write the values out in the control. Controls.Add(new LiteralControl(String.Format("<script type='javascript'>var customWebPartProperty1 = '{0}';</script>", myWebPart.CustomProperty1))); You can also write them to hidden fields in the webpart instead if that makes it easier.


0

I know this is an old post but I just wanted to add an update for SharePoint 2013. I came across this post when experiencing the exact same symptoms in a SharePoint 2013 on-premis farm. It turns out that if you are viewing the web part in the 'Web Part Preview' page (accessed by clicking on the web part name in the web part gallery) the events on buttons ...


0

I figured out how to do it. I added a column like this: <asp:TemplateField HeaderText=" " SortExpression="EmailAdress"> <EditItemTemplate> <asp:TextBox ID="txtEmailAddress" runat="server" Text='<%# Bind("EmailAddress") %>'></asp:TextBox> </EditItemTemplate> <ItemTemplate> ...


1

Make a standard web link in the format mailto:user@domain.com


0

You might need to use SPRoleDefinitionCollection using(SPWeb web = SPSite(webUrl).OpenWeb()) { SPRoleDefinitionCollection roleDefinitions = web.RoleDefinitions; SPRoleDefinition roleDefinition = roleDefinitions["Full Control"]; foreach (SPRoleAssignment roleAssigment in web.RoleAssignments) { if ...


1

After dtRow["Name"] = user.Name; dtRow["Email"] = user.Email; Write dtRow.update(); Well, speaking more broadly, whenever you make a change to a list item, make sure you cal the update method to actually make the changes to the list item.



Top 50 recent answers are included