Trying to get simple ModalPopupExtender to work

I'm learning ASP.NET still.   I'm trying to get the ModalPopupExtender to work as a simple example so I can run with it, but I'm stuck with the error.

Unknown server tag 'ajaxToolkit:ModalPopupExtender'.

What am I doing wrong?    Code is below.   And any other advice or samples would be helpful.
<%@ Page Language="VB" AutoEventWireup="true"  %> 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head id="Head1" runat="server"> 
    <title>Modal Popup Demo</title> 
    <style> 
    .backgroundColor 
    { 
        background-color:Gray;    
        filter:alpha(opacity=25); 
    } 
    </style> 
</head> 
<body> 
    <form id="form1" runat="server"> 
    <div> 
<ajaxToolkit:ModalPopupExtender ID="popExtender" runat="server" 
		    TargetControlID="lnkDummy"
                    CancelControlID="btnAddressCancel" 
                    PopupControlID="pnlNewAddress" 
                    BackgroundCssClass="popup_background" />

                    <div class="DetailsView">
                        <div class="DetailsView-Data">
                            <ul>
                                <li><span class="DetailsView-Name"></span><span class="DetailsView-Value">
                                    <asp:CheckBox ID="chkAlso" runat="server" CssClass="checkbox" Text='<%$ Resources: Address, ContentText_CanAlsoBeUsedAsBillingAddress %>' /></span></li>
                                <li><span class="DetailsView-Name"></span><span class="DetailsView-Value">
                                    <asp:CheckBox ID="chkMakeDefault" runat="server" CssClass="checkbox" Text='<%$ Resources: Address, ContentText_SetAsDefault %>' /></span></li>
                            </ul>
                            <div class="submitbuttons">
                                <asp:Button CssClass="button" ID="btnSaveNewAddress" runat="server" Text='<%$ Resources: FormButton_Submit %>'
                                    CausesValidation="true" />
                            </div>
                        </div>
                        <asp:LinkButton ID="btnAddressCancel" runat="server" Text="X" CssClass="closebutton linkbutton2" />
                    </div>
                    
                    
                     <asp:LinkButton ID="lnkDummy" runat="server" CausesValidation="false" />
                     
                     
                     
                     
		<asp:Panel ID="pnlNewAddress" runat="server" CssClass="popup" Style="display: none">
                    <h2>
                        <asp:Literal ID="litAddressTitle" runat="server" Text="<%$ Resources:ContentText_Edit%>" /></h2>
                    <user:AddressInput ID="UC_NewEditAddress" DisplayType="Shipping" runat="server" ShowSaveAs="true"
                        AutoPostCountry="false" ValidationGroup="Shipping" />
                    <div class="spacer">
                    </div>
                    <div class="DetailsView">
                        <div class="DetailsView-Data">
                            <ul>
                                <li><span class="DetailsView-Name"></span><span class="DetailsView-Value">
                                    <asp:CheckBox ID="chkAlso" runat="server" CssClass="checkbox" Text='<%$ Resources: Address, ContentText_CanAlsoBeUsedAsBillingAddress %>' /></span></li>
                                <li><span class="DetailsView-Name"></span><span class="DetailsView-Value">
                                    <asp:CheckBox ID="chkMakeDefault" runat="server" CssClass="checkbox" Text='<%$ Resources: Address, ContentText_SetAsDefault %>' /></span></li>
                            </ul>
                            <div class="submitbuttons">
                                <asp:Button CssClass="button" ID="btnSaveNewAddress" runat="server" Text='<%$ Resources: FormButton_Submit %>'
                                    CausesValidation="true" />
                            </div>
                        </div>
                        <asp:LinkButton ID="btnAddressCancel" runat="server" Text="X" CssClass="closebutton linkbutton2" />
                    </div>
                </asp:Panel>                     
    </div> 
    </form> 
</body> 
</html>

Open in new window

saturationAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Imran Javed ZiaConsultant Software Engineer - .NET ArchitectCommented:
Just change the code as following

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>  
<asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>

<%@ Page Language="VB" AutoEventWireup="true"  %>   

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>  

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">   
<html xmlns="http://www.w3.org/1999/xhtml">   
<head id="Head1" runat="server">   
    <title>Modal Popup Demo</title>   
    <style>   
    .backgroundColor   
    {   
        background-color:Gray;      
        filter:alpha(opacity=25);   
    }   
    </style>   
</head>   
<body>   
    <form id="form1" runat="server">   
<asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
    <div>   
<ajaxToolkit:ModalPopupExtender ID="popExtender" runat="server"   
                    TargetControlID="lnkDummy"  
                    CancelControlID="btnAddressCancel"   
                    PopupControlID="pnlNewAddress"   
                    BackgroundCssClass="popup_background" />  
  
                    <div class="DetailsView">  
                        <div class="DetailsView-Data">  
                            <ul>  
                                <li><span class="DetailsView-Name"></span><span class="DetailsView-Value">  
                                    <asp:CheckBox ID="chkAlso" runat="server" CssClass="checkbox" Text='<%$ Resources: Address, ContentText_CanAlsoBeUsedAsBillingAddress %>' /></span></li>  
                                <li><span class="DetailsView-Name"></span><span class="DetailsView-Value">  
                                    <asp:CheckBox ID="chkMakeDefault" runat="server" CssClass="checkbox" Text='<%$ Resources: Address, ContentText_SetAsDefault %>' /></span></li>  
                            </ul>  
                            <div class="submitbuttons">  
                                <asp:Button CssClass="button" ID="btnSaveNewAddress" runat="server" Text='<%$ Resources: FormButton_Submit %>'  
                                    CausesValidation="true" />  
                            </div>  
                        </div>  
                        <asp:LinkButton ID="btnAddressCancel" runat="server" Text="X" CssClass="closebutton linkbutton2" />  
                    </div>  
                      
                      
                     <asp:LinkButton ID="lnkDummy" runat="server" CausesValidation="false" />  
                       
                       
                       
                       
                <asp:Panel ID="pnlNewAddress" runat="server" CssClass="popup" Style="display: none">  
                    <h2>  
                        <asp:Literal ID="litAddressTitle" runat="server" Text="<%$ Resources:ContentText_Edit%>" /></h2>  
                    <user:AddressInput ID="UC_NewEditAddress" DisplayType="Shipping" runat="server" ShowSaveAs="true"  
                        AutoPostCountry="false" ValidationGroup="Shipping" />  
                    <div class="spacer">  
                    </div>  
                    <div class="DetailsView">  
                        <div class="DetailsView-Data">  
                            <ul>  
                                <li><span class="DetailsView-Name"></span><span class="DetailsView-Value">  
                                    <asp:CheckBox ID="chkAlso" runat="server" CssClass="checkbox" Text='<%$ Resources: Address, ContentText_CanAlsoBeUsedAsBillingAddress %>' /></span></li>  
                                <li><span class="DetailsView-Name"></span><span class="DetailsView-Value">  
                                    <asp:CheckBox ID="chkMakeDefault" runat="server" CssClass="checkbox" Text='<%$ Resources: Address, ContentText_SetAsDefault %>' /></span></li>  
                            </ul>  
                            <div class="submitbuttons">  
                                <asp:Button CssClass="button" ID="btnSaveNewAddress" runat="server" Text='<%$ Resources: FormButton_Submit %>'  
                                    CausesValidation="true" />  
                            </div>  
                        </div>  
                        <asp:LinkButton ID="btnAddressCancel" runat="server" Text="X" CssClass="closebutton linkbutton2" />  
                    </div>  
                </asp:Panel>                       
    </div>   
    </form>   
</body>   
</html>

Open in new window

0
saturationAuthor Commented:
Now I'm getting:

'lnkYes_Click' is not a member of 'ASP.loanapplication_aspx'.

What is this error?
0
Imran Javed ZiaConsultant Software Engineer - .NET ArchitectCommented:
Please check your code behind for this
as i cannot find any such object lnkYes  in aspx code
0
Why Diversity in Tech Matters

Kesha Williams, certified professional and software developer, explores the imbalance of diversity in the world of technology -- especially when it comes to hiring women. She showcases ways she's making a difference through the Colors of STEM program.

saturationAuthor Commented:
Ok, put that code in place....Now:

Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified.

The error line is

 <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>  
0
saritapatelSoftware developerCommented:
Add this 2 ajax file to bin folder
0
saritapatelSoftware developerCommented:
http://programming.top54u.com/post/ASP-Net-AJAX-Control-Toolkit.aspx

Add ASP.Net AJAX Control Toolkit from above link

and
 How to install AJAX Control Toolkit is also given on following site

http://programming.top54u.com/post/How-to-install-AJAX-Control-Toolkit.aspx
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.