Monthly Archives : Август 2012

Home  >>  2012  >>  Август

Чтобы работал FileUpload внутри UpdatePanel

21
Авг,2012

0

[sourcecode language=»C#»] <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional"> <ContentTemplate> <asp:FileUpload ID="FileUpload1" runat="server"/> <asp:Button ID="Button1" runat="server" Text="Создать" OnClick="Button2_OnClick"/> </ContentTemplate> <Triggers> <asp:PostBackTrigger ControlID="Button1" /> </Triggers> </asp:UpdatePanel> [/sourcecode]

Установка прав для элемента списка

21
Авг,2012

0

foreach (SPListItem contractItem in reestrContract.Items) { if (!contractItem.HasUniqueRoleAssignments) { contractItem.BreakRoleInheritance(true); } SPFieldUserValue UV = new SPFieldUserValue(web, contractItem[«Кому»].ToString()); SPPrincipal myGroup = UV.User; SPRoleAssignment assignedToRoleAssignment = new SPRoleAssignment(myGroup); assignedToRoleAssignment.RoleDefinitionBindings.Add(web.RoleDefinitions[«Чтение»]); contractItem.RoleAssignments.Add(assignedToRoleAssignment); i++; Console.WriteLine(i); }

Баг в WorkFlow Delay

16
Авг,2012

0

https://sladescross.wordpress.com/2010/01/06/sharepoint-workflow-delay-activity-issues/ http://social.msdn.microsoft.com/forums/en-US/sharepointworkflow/thread/9f5784de-b666-4dbc-8cea-ce9d5c221f2d http://www.microsoft.com/en-us/download/details.aspx?id=21066