Hi, I'm trying to find the way to limit the number of emails send (gathered from database) to a very low number like 5 at a time.
Googling I've found how to use multiple clients, but that is not what I'm looking for.
Use Cache object to store count values as Cache is shared across multiple users.
To set
C#
Cache["Count"] = 1;
VB.Net
Cache("Count") = 1
To get
int count = Convert.ToInt32(Cache["Count"]);
Dim count As Integer = Convert.ToInt32(Cache("Count"))
© COPYRIGHT 2024 ASPSnippets.com ALL RIGHTS RESERVED.