ericstenson 5 Posting Whiz in Training Team Colleague

Try Quickbooks.

ericstenson 5 Posting Whiz in Training Team Colleague

It's doable. Here is how I would attack it....

1. Drop an ASP UpdatePanel somewhere on the page
2. Create a Session variable called "PopupEvent" (Session.Add("PopUpEvent", "1")
> Set this to a value of 1
3. Put a timer in the UpdatePanel. Let it fire every 2-5 minutes
4. When the timer fires, let it check to see if there is any event in your database that is within the next (X) number of minutes.
5. If there is an event, set the Session("PupUpEvent") = "2"
5a. Create a session object to handle the Event ID / Record ID in your database of the event
6. If there is an event, enable a second timer outside of the UpdatePanel.
7. Turn off the first timer
6. When the 2nd timer is fired, turn it off, and reload the page
8. On the PageLoad call create an if statement:

If Session("PopUpEvent") = 2 then

Response.Write("<script>")

                Response.Write("window.open('WHATEVERNEWPAGENAME.aspx','_blank','toolbar=0,location=0,menubar=0,resizable=0,width=400,height=320')")

                Response.Write("</script>")
    Response.Write("<script>")

                Response.Write("window.open('YOURREMINDERPAGE.aspx','_blank','toolbar=0,location=0,menubar=0,resizable=0,width=400,height=320')")

                Response.Write("</script>")



end if

On loading 'YOURREMINDERPAGE grab out of session the record from the database of the even that is pending.

ericstenson 5 Posting Whiz in Training Team Colleague

Like, as in, Session.Add("WhatToSay","Hello")

Label1.text = Session("WhatToSay")

Something stupid like that?

ericstenson 5 Posting Whiz in Training Team Colleague

Also, feel free to give me reputation points for this.

John A commented: Sure. By the way, reputation doesn't count in the Coffee House forums anymore, so either way this will have no effect on your reputation. -3
jbennet commented: same -6
Ancient Dragon commented: you didn't say what kind of rep you wanted :) -6
Nick Evan commented: "Gimme the red candy" Sure, no prob ;) +5
Jx_Man commented: This rep have no effect to you -2