Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
XML
<asp:PopupControlExtender  BehaviorID="SearchPeoplePopUP"
                    ID="PopupControlExtender2" runat="server"
                    DynamicServicePath="" Enabled="True" ExtenderControlID="" OffsetX="110"
                    OffsetY="-110" PopupControlID="pnlSearchPeople" Position="Left"
                    TargetControlID="btnSearchPeople"></asp:PopupControlExtender>
                     <asp:Panel ID="pnlSearchPeople" runat="server"  BorderStyle="Solid" BorderWidth="1px" CssClass="popupControl">
                     </asp:Panel>

VB
<asp:ImageButton ID="btnSearchPeople" runat="server" Height="10px"  OnClientClick="return false"
                        ImageUrl="~/Images/1388152573_11_Search.png" Text="SearchPerson" Width="10px" />


i want to show popup by clicking button given below using jScript/Jquey
<input id="Button2" type="button" value="LoadPerson" onclick="showPOPup()"/>

i tried below code inj my js file
function showPOPup()
{
$find('SearchPeoplePopUP').showPopup();
return false;
}

but this not work
Posted
Updated 15-Jan-19 6:12am

hi try this code..


JavaScript
function showPOPup() {

           $('.popupControl').css('visibility', 'visible');
           $('.popupControl').css('display', 'block');
           return false;
       }



<input id="Button2" type="button" value="LoadPerson" onclick="return showPOPup()"/>
 
Share this answer
 
try like this:-
C#
function showPOPup()
{
$find('SearchPeoplePopUP').show();
return false;
}



<input id="Button2" type="button" value="LoadPerson" onclick="return showPOPup()"/>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900