how to enable javascript within a ajax control
-
In my application I want to call a java script in a button click at the code behind.And the button is inside an update panel.But the java script is not working.If i place the button out side the update panel then it is working.My question is how to call the java script by placing the button inside the update panel?
-
In my application I want to call a java script in a button click at the code behind.And the button is inside an update panel.But the java script is not working.If i place the button out side the update panel then it is working.My question is how to call the java script by placing the button inside the update panel?
How are you registering your javascript call? You might want to try
ScriptManager.RegisterStartupScript
, as this will be called following a callback. -
How are you registering your javascript call? You might want to try
ScriptManager.RegisterStartupScript
, as this will be called following a callback. -
Have you added your button control inside the tag of the Update panel... and one more thing you also need to know whether it is a post back trigger or asynchronous trigger... If you are not aware of this, Just try this the following piece of code <Triggers> </Triggers >
Regards, Vengat P