B
BudOlly
Hello, I'm looking for a way to embed client-code into the page and trigger a
javascript 'alert("hello world")' whenever the 'Timesheet>Submitted' server
event occurs. It's not as easy as simply calling MsgBox() within my assembly
because that attempts to fire an alert on the server. I've been trying to
use the 'ClientScriptManager' class to register the client code using the
'RegisterStartupScript()' method. I'm able to verify that the code is infact
being registered because I am checking it with 'IsStartupScriptRegistered()'
then I shoot off the result in an e-mail. The client alert never fires,
though. Any suggestions, or am I doing something obviously wrong? I'm very
new to asp.net and the server event handlers.
javascript 'alert("hello world")' whenever the 'Timesheet>Submitted' server
event occurs. It's not as easy as simply calling MsgBox() within my assembly
because that attempts to fire an alert on the server. I've been trying to
use the 'ClientScriptManager' class to register the client code using the
'RegisterStartupScript()' method. I'm able to verify that the code is infact
being registered because I am checking it with 'IsStartupScriptRegistered()'
then I shoot off the result in an e-mail. The client alert never fires,
though. Any suggestions, or am I doing something obviously wrong? I'm very
new to asp.net and the server event handlers.