Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

SharePoint Online PeoplePickerControl.js not working in Asp.net Wizard control

$
0
0

Hi All,

I am facing one issue related to peoplepickercontrol, which is in Asp.net wizard control, and I am using JS file from git hub. This is for SharePoint online, when I am placing the control in step 1 it loads the scripts properly and when we type in textbox it searches for user and are fetched properly, but when moved to next step and back then it does'nt works, also the values are not maintained in the textbox, i have enabled the viewstate mode for wizard control but still the same issue.

Kindly suggest me how can I make this working.

Below is my code:

Placed in Head tag:

<!-- People Picker (Office Widget references) -->
    <link href="../Styles/Office.Controls.css" rel="stylesheet" />
    <script src="<%=Request.QueryString["SPHostUrl"] %>/_layouts/15/SP.RequestExecutor.js" type="text/javascript"></script>
    <script src="../Scripts/Office.Controls.js" type="text/javascript"></script>
    <script src="../Scripts/Office.Controls.PeoplePicker.js" type="text/javascript"></script>
    <!-- END People Picker (Office Widget references) -->

Placed under wizard control step 1:

<div style="display: none">
                                            <asp:TextBox ID="SiteOwner" runat="server" ClientIDMode="Static"></asp:TextBox>
                                        </div>
                                        <div class="ms-accentText">Site Owner </div>
                                        <div id="PeoplePickerSimple" data-office-control="Office.Controls.PeoplePicker" data-office-options='{"placeholder" : "Please choose an owner for the site collection..." , "onChange" : handlePeoplePickerChange    }'></div>

Also, this post grom git Hub was refered: https://github.com/OfficeDev/SharePoint-Power-Hour-Code-Samples/blob/master/SP.SiteCreatorWeb/Pages/Default.aspx

Kinldy suggest how can I make this working in Asp.net wizard control for sharePoint online.

Thanks and Regards,

Nadim sayyed


MCTS- Please vote and mark posts as answered where appropriate.


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>