I have a usercontrol that is visible = false when the page loads. Then it becomes visible = true. I want javascript to be executed when this usercontrol is set to visible = true in the code. the only solution i found is to use ScriptManager.RegisterStartupScript in
user control code. But I do not like to write my javascript in codeBehind.
This jQuery in usercontrol does not work: $ (document) .ready (function () {warning ('test');});
The user control is located in the update panel.
source
share