Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I have a dropdown "ddlID" in a panel in modalpopupextender.

I populate a arraylist on "btnFill" button click.
then i assign the arraylist to dropdown in the panel.

but it(dropdown) remains blank. But if i place the drop down outside the panel it renders with the given data.
please help...


protected void btnFill_Click(object sender, EventArgs e)
{
   foreach (GridViewRow rw in gvGrid.Rows)
   {
                    CheckBox chkBx = (CheckBox)rw.FindControl("chkSelect");
                    if (chkBx != null && chkBx.Checked)
                    {
                            HyperLink hpr = (HyperLink)rw.FindControl("hpr");
                            arlMyarylst.Add(hpr.Text.Trim());
                    }
   }
ddlID.Datasource = arlMyarylst;
ddlID.dataBind();
mpeMyModal.Show();
}
Posted
Updated 15-Oct-13 18:31pm
v2

Hello, maverick12131.

I don't know about ASP.NET but I've found some articles listed on Google.

ModalPopupExtender from Server Side Code[^]
http://stackoverflow.com/questions/2877551/asp-net-modalpopupextender-prevents-button-click-event-from-firing[^]

If it helps your, I'm so glad.
 
Share this answer
 
Comments
maverick12131 16-Oct-13 0:29am    
I don't have problem displaying the popup.
the dropdown in the popup dosent bind the given data and remains blank.- that's the problem
Shubh Agrahari 16-Oct-13 2:37am    
Tell me one thing that modal popup extender working well?? means you saying its running well on the page but when u trying to use Model then its gonna blank so the general things you have to be know About Using Ajax Controls....solve it with reviewing Script manager and proper necessitous Panel and Model Popup Extender Control
 
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