Click here to Skip to main content
15,892,697 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am trying to use Modal Pop extender but somehow it is not working. The CSS class is working fine when the button is fired which activates the modal pop up but the panel which is the content of modal pop up is not appearing. I have seen many articles on it and almost I am doing the same thing still I am not able to get it. Can u pls help me ?
Here is my code :
protected void btn_add_new_Click(object sender, EventArgs e)
    {

        // HttpContext.Current.Response.Redirect("update-client.aspx");

        AjaxControlToolkit.ModalPopupExtender modalPop = new AjaxControlToolkit.ModalPopupExtender();
        modalPop.ID = "popUp";
        modalPop.PopupControlID = "pn_add_new_workOrder";
        modalPop.TargetControlID = "btn_add_new";
        modalPop.DropShadow = false;
        modalPop.BackgroundCssClass = "modalBackground";
        modalPop.CancelControlID = "btnCancel_new_inv";       
        this.pn_add_new_workOrder.Controls.Add(modalPop);
        modalPop.Show();       
    }
Posted
Updated 12-Jun-12 18:59pm
v2
Comments
[no name] 15-Jun-12 6:28am    
It's got complied?
Any error msg your getting?
Bin folder has the AjaxControlToolKit ddl?

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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