Click here to Skip to main content
16,015,641 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: web form dictionary compare Pin
jkirkerx26-Jun-12 7:45
professionaljkirkerx26-Jun-12 7:45 
GeneralRe: web form dictionary compare Pin
Richard MacCutchan26-Jun-12 8:19
mveRichard MacCutchan26-Jun-12 8:19 
GeneralRe: web form dictionary compare Pin
jkirkerx26-Jun-12 11:02
professionaljkirkerx26-Jun-12 11:02 
GeneralRe: web form dictionary compare Pin
Richard MacCutchan26-Jun-12 21:32
mveRichard MacCutchan26-Jun-12 21:32 
GeneralRe: web form dictionary compare Pin
jkirkerx27-Jun-12 6:28
professionaljkirkerx27-Jun-12 6:28 
GeneralRe: web form dictionary compare Pin
Richard MacCutchan27-Jun-12 6:31
mveRichard MacCutchan27-Jun-12 6:31 
GeneralRe: web form dictionary compare Pin
jkirkerx27-Jun-12 6:42
professionaljkirkerx27-Jun-12 6:42 
JokeLets do something awesome... Pin
AmitKumar8924-Jun-12 18:08
AmitKumar8924-Jun-12 18:08 
Hi,
Have you ever been in a situation where you needed a scheduled task to kick off, but you didn’t have access to the server (think shared hosting)? I originally saw this hack on Samir’s blog about a year ago now.

Essentially, you just create a System.Timers.Timer in the Application_Start event of your global.asax, and bam – instant scheduled task! I don’t necessarily recommend this, but I guess if you had no other option it could work.

C#
using System.Timers;

public class Global : System.Web.HttpApplication
{
    protected void Application_Start(object sender, EventArgs e)
    {
        Timer timer = new Timer(1000);
        timer.Elapsed += (object s, ElapsedEventArgs args) =>
        {
            LetsDoSomethingAwesome();
        };
        timer.Start();
    }
}


Big Grin | :-D
Thanks & Regards
--AK

GeneralRe: Lets do something awesome... Pin
Richard MacCutchan24-Jun-12 22:57
mveRichard MacCutchan24-Jun-12 22:57 
GeneralRe: Lets do something awesome... Pin
fjdiewornncalwe25-Jun-12 5:07
professionalfjdiewornncalwe25-Jun-12 5:07 
Questionsession variables Pin
sc steinhayse24-Jun-12 12:27
sc steinhayse24-Jun-12 12:27 
AnswerRe: session variables Pin
wikizhao24-Jun-12 20:34
wikizhao24-Jun-12 20:34 
AnswerRe: session variables Pin
Rahul Rajat Singh25-Jun-12 0:24
professionalRahul Rajat Singh25-Jun-12 0:24 
AnswerRe: session variables Pin
jkirkerx25-Jun-12 8:59
professionaljkirkerx25-Jun-12 8:59 
SuggestionRe: session variables Pin
Mukesh_Chauhan25-Jun-12 21:44
Mukesh_Chauhan25-Jun-12 21:44 
Questiondata context object in web form 2010 app Pin
sc steinhayse24-Jun-12 7:58
sc steinhayse24-Jun-12 7:58 
AnswerRe: data context object in web form 2010 app Pin
Sandeep Mewara24-Jun-12 10:04
mveSandeep Mewara24-Jun-12 10:04 
Questioncustom validator for C# 2010 web app Pin
sc steinhayse24-Jun-12 7:33
sc steinhayse24-Jun-12 7:33 
AnswerRe: custom validator for C# 2010 web app Pin
Sandeep Mewara24-Jun-12 9:56
mveSandeep Mewara24-Jun-12 9:56 
AnswerRe: custom validator for C# 2010 web app Pin
jkirkerx24-Jun-12 10:23
professionaljkirkerx24-Jun-12 10:23 
QuestionParsing Error Pin
WebMaster24-Jun-12 0:33
WebMaster24-Jun-12 0:33 
AnswerRe: Parsing Error Pin
Sandeep Mewara24-Jun-12 2:57
mveSandeep Mewara24-Jun-12 2:57 
QuestionTall PDF Thumbnail, tweaking sample code, read file from disk, and not upload Pin
jkirkerx23-Jun-12 9:04
professionaljkirkerx23-Jun-12 9:04 
Answer[solved] Pin
jkirkerx23-Jun-12 9:37
professionaljkirkerx23-Jun-12 9:37 
NewsSpeek Object Pin
thun makara23-Jun-12 2:06
thun makara23-Jun-12 2:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.