Help with design

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I want to use a popup control in my asp app like the one in outlook web
access and msn. This will be used to notify users of a change in the
database. I plan on using the one on codeproject, however, how can I have the
popup control check by itself every minute or two minutes in the database
instead of waiting for the current page (which the control is on) to be
refreshed or postback?

Thanks
 
I plan on using the one on codeproject, however

The one WHAT?

When you coin a term like "popup control" you must keep in mind that this is
not a common term, but one you invented. You need to tell us, therefore,
what it is you're describing. If I told you that my foobar had a problem,
what would I be talking about? How could you help me solve it?

At this point, I can tell you that it is certainly possible to create a
client-side entity of some sort that can query a database periodically.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 
Thanks. Now you want to know how to modify that Control to do what you want?
Well, I don't have the code for the Control, so I can't tell you how. I
could always download it and modify it, but I don't think you would pay what
I would charge to do that!

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 
Hi,
What I need to know, apart from that control, is how can I have a process
started when a user logs in an application and every few minutes checks the
database for new messages. The user can be on any page, it doesn't matter.
The process will be running separately.
 
Hard to say for sure. Is this user-specific? If so, put a timer in Session,
and set up an event handler for the timer's Elapsed event that does what you
want. If it is for all users, put the timer in Application Cache. There
would also have to be a variable in Session or Application that idicates
whether or not there are new messages. Each Page could check that variable
to see whether or not there are new messages. The Page would then reset the
variable back to its original state.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 
Thanks. Can I load a popup form session?

Kevin Spencer said:
Hard to say for sure. Is this user-specific? If so, put a timer in Session,
and set up an event handler for the timer's Elapsed event that does what you
want. If it is for all users, put the timer in Application Cache. There
would also have to be a variable in Session or Application that idicates
whether or not there are new messages. Each Page could check that variable
to see whether or not there are new messages. The Page would then reset the
variable back to its original state.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 
Thanks. Can I load a popup form session?

I don't understand the question.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 
Hi,
You said

"If so, put a timer in Session,
and set up an event handler for the timer's Elapsed event that does what you
want."

I want it to be user specific. So If I do the checking in in Session then
can I load the popup from there?

Thanks
 
You can put the timer into Session. You can't load a popup window from
Session. It has to be done on the client. However, you could store data in
Session that could be used by a Page class to spawn a popup. It would be
user-specific.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 
Thanks for the info!

Kevin Spencer said:
You can put the timer into Session. You can't load a popup window from
Session. It has to be done on the client. However, you could store data in
Session that could be used by a Page class to spawn a popup. It would be
user-specific.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 
Back
Top