Show Hide ASP.Net AJAX Modal Popup in User Control from Page in ASP.Net

Last Reply on Jan 28, 2013 04:03 AM By Mudassar

Posted on Jan 28, 2013 04:02 AM


i have user control and in that i have ajax  modalpopup extender

now, i want to use this modal popup in my aspx.vb page like


than, how can i get the id of modalpopup from the user control and do this functionality


Posted on Jan 28, 2013 04:03 AM

1. In the UserControl create 2 public functions

public void ShowModal()
public void HideModal()

2. Now from page you can call these public functions using the Id of UserControl as following