I want to fire script on page only when user triggers proper event. In my case user by button click adds new record to database. I'am able to obtain dynamically created control reference with new record in code behind , I just don't know how from code behind pass it this single time to JavaScript that will fire after page loads.
My script will look like this :
function(id) {
document.getElementByID(id).focus()
}
I'am using .net framework 1.1
Do you have idea how I can accomplish this task ?