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

Hi,

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

modalpopup.show()

modalpopup.hide()

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()
{
modalpopup.show();
}
public void HideModal()
{
modalpopup.hide();
}

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

MyUserControl.ShowModal();

MyUserControl.HideModal();

 

I agree, here is the link: https://www.e-iceblue.com/Introduce/spire-office-for-net-free.html