Hi,

I m working on a project in which i need to pop up a window when a certain condition matches. for example i fix up an appointment at 2.30 pm for a caller.when the time becomes 2.20 i wil pop up the window to alert the user that he has a cal at 2.30 pm.

pls tell how do i achieve that.

thx

If you want to execute code such as opening a window at specified intervals, use Ajax Timer control.

Also use ajax popup. Since you want to open window automatically without user interaction. Otherwise window will be blocked by browser.

You must use java script for alert like
example

var tt = "2:20" // Variable for Time
if(tt=="2:20")
alert("It is Lunch Time");

try this

Button1.Attributes.Add("onclick", "javascript:alert('Are you sure');");
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.