سؤال

هل يمكننا عرض جزء ويب مخصص (تم تطويره في Visual Studio 2010) في حوار مشروط منبثقة؟إذا كانت الإجابة بنعم، فماذا نفعل ذلك ... أي برامج تعليمية أو مقالة؟

شكرا!

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

المحلول

You can show any page using eg SP.UI.ModalDialog. You could just add your WebPart to a page, and link to it:

<a title="aTitle" onclick="javascript:SP.UI.ModalDialog.ShowPopupDialog('http://link/to/page/with/webpart.aspx');return false;">
   aLink
</a>

نصائح أخرى

Yes. You can place web part in any page and show this page in dialog. How to call dialog: MSDN: SP.UI.ModalDialog.showModalDialog(options) Method

<script type=”text/javascript”>
 function OpenDialog(URL) {
  var options = SP.UI.$create_DialogOptions();
  options.url = URL;
  options.width = 600;
  options.height = 400;
  SP.UI.ModalDialog.showModalDialog(options);
 }
 </script>
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى sharepoint.stackexchange
scroll top