"If at first you don't succeed; call it version 1.0" :-Unknown

Pages

Thursday, May 20, 2010

time based redirection in asp.net

 Hi everybody,
This is a very useful one for every Project. A simple example is after registration v show a message after that a few second (Manually controlling) redirecting him to his home page.

        System.Threading.Thread.Sleep(5000); //  after 5 sec
        Response.Redirect("http://www.simplyasp.net");
//
i'm redirecting him to simplyasp.net

hope it help u some way's
Have a nice day... 'N happy Coding :)

 The Rough Guide to KeralaHidden India: The Kerala SpicelandsKerala Dream: A Shaman's Dream Project

No comments: