J
Jawahar
All
We have an in-house web application that uses several User controls on a
single web page!
So each time the page loads the Page_load events of all the user cotrols
also fire.
One of the controls uses RegisterClientScript in its page_Load event. This
is fine when the control is visible but not otherwise. we often get
Javascript errors from script functins that are trying to refer to the user
control when it is no longer visible. The script the User control emmited is
still there on the main page.
Is there a way of unregistering the script block?
I.E. the oppisite of RegisterClientScript. I have tried to use the
IsClientScriptRegitered but this is not working as I expect. Is this because
I am using a user control rather than a regular Web Page?
Any help is appreciated
Jawahar Rajan
We have an in-house web application that uses several User controls on a
single web page!
So each time the page loads the Page_load events of all the user cotrols
also fire.
One of the controls uses RegisterClientScript in its page_Load event. This
is fine when the control is visible but not otherwise. we often get
Javascript errors from script functins that are trying to refer to the user
control when it is no longer visible. The script the User control emmited is
still there on the main page.
Is there a way of unregistering the script block?
I.E. the oppisite of RegisterClientScript. I have tried to use the
IsClientScriptRegitered but this is not working as I expect. Is this because
I am using a user control rather than a regular Web Page?
Any help is appreciated
Jawahar Rajan