Client-side alert triggered by server event handler

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.
 
R

Ray McCoppin

Can you make this work using a timer on the server to trigger the hello world
alert?
Have also modiifed the WSS enviroment to work with AJAX?

Hope this helps
--
Ray McCoppin

http://www.randsmanagement.com
Project Server 2007 Archive Tool
SRS gantt charts
 
B

BudOlly

Not sure how using the timer will work because I need the alert to be fired
whenever someone submits a timesheet. Wouldn't a timer just allow me to set
a scheduled alert? Also, I have no idea how to modify the WSS environment as
you suggested...my appologies as I am a novice web programmer. Are you
talking about modifying the 'master pages'?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top