Calling the changeControlSample javascipt method from the code behind

May 12, 2014 at 1:31 PM
Edited May 12, 2014 at 1:32 PM
Hi,
I'd like to change the current user control when an even is raised . I tried this snippet

void controlconsultation_imageinfo(object sender, CommandEventArgs e)
  {
  PartialUpdatePanel7.UserControlPath = "Consultation.ascx";
   }
But i don't get any result !!
How can i fix my code?