Click here to Skip to main content
16,007,885 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
dear all

I downloaded ajax extender toolkit and using it in vb2008

i create a simple default form and used a button to show the pop up window .

But when i run the form and click on that button nothing happlens... Why?

how to show the ajax popup window on button click?

Below is our sample coding

XML
<form id="form1" runat="server">

    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
     <asp:Button ID="BtnOkay" runat="server" Text="Button" />
     <asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server"
    CancelControlID="BtnCancel" OkControlID="BtnOK"
    TargetControlID="BtnOkay"  PopupControlID="Panel1" BackgroundCssClass="ModalPopupBG">
    </asp:ModalPopupExtender>
    <asp:Panel ID="Panel1" Style="display: none;"  class="HellowWorldPopup" runat="server" Height="90px" Width="205px">
    this is model popup
    <asp:Button ID="BtnCancel" runat="server" Text="Button" />
    &nbsp;<asp:Button ID="BtnOK" runat="server" Text="Button" />
    </asp:Panel>
    </div>
</form>
</body>
</html>


AND below is my CSS

CSS
.ModalPopupBG

{
  background-color:#CCCCFF;
  -ms-filter: alpha(opacity=70);
  -ms-opacity:0.7;
}

.HellowWorldPopup
{
    min-width:200px;
    min-height:150px;
    background:white;
}



IS there should be a code to show the window?
Posted

Hi,
Quote:
Style="display: none;"

Remove this from your panel control.


--Amit
 
Share this answer
 
Comments
Mohamed Mitwalli 29-Aug-12 9:32am    
5+
_Amy 29-Aug-12 9:33am    
Thank you Mitwalli. :)
onlineQry 30-Aug-12 17:24pm    
i did as you said but still not showing. but when i use a jscript alert msg then during msg this window also displays and when it click ok on that msg this window also goes back.
Just place Toolkit Script Manager instead of Script Manager for newer versions of Ajaxtoolkit.
 
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