إضافة جزء ويب برمجيا إلى صفحة شير وحفظ القيم في جزء ويب مخزن التخصيص

StackOverflow https://stackoverflow.com/questions/378430

سؤال

في مشروعي برمجيا إنشاء صفحة جزء ويب وإضافة جزء ويب إليها باستخدام SPLimitedWebPartManager. وأود أيضا أن تعيين بعض خصائص جزء ويب وحفظه في نطاق شبكة الإنترنت جزءا التخصيص. كيف يمكنني الوصول إلى متجر التخصيص لجزء ويب.

هل كانت مفيدة؟

المحلول

استخدم في SaveChanges الطريقة على SPLimitedWebPartManager بعد تغيير خصائص لمجموعة منهم.

نصائح أخرى

تجدر الإشارة التالية آخر لإضافة جزء ويب برمجيا:

<وأ href = "http://www.etechplanet.com/post/2009/03/18/AddingRemoving-web-part-programmatically-in-SharePoint-website-using-C-Code.aspx" يختلط = "noreferrer نوفولو"> http://www.etechplanet.com/post/2009/03/18/AddingRemoving-web-part-programmatically-in-SharePoint-website-using-C-Code.aspx

لتعديل قيمة العقارات جزء ويب برمجيا، راجع التالية آخر:

<وأ href = "http://www.etechplanet.com/post/2009/03/19/Modify-property-values-of-a-web-part-in-SharePoint-website-programmatically-using- C.aspx "يختلط =" نوفولو noreferrer "> http://www.etechplanet.com/post/2009/03/19/Modify-property-values-of-a-web-part-in-SharePoint-website-programmatically التي تستخدم و-C.aspx

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top