Hello,

I need to start a when a button is clicked on my form
in a windows application i'd use timer.start()

but i dont seem to have this option with my webform

any idea how i can have the timer idle on page load and start it on button click?

Iain

Recommended Answers

All 2 Replies

Hi,
Depends on what you wish to do...

You will probably need to use client side javascript as you can not force a browser to reload/refresh from server side...

Unless you are doing something like counting between responses...

hello,

I managed to get waht i wanted to do by using...

Response.AddHeader("REFRESH", "2;URL=home.aspx")

when a user changes their password it displays a success message, waits 2 seconds then redirects the user to the main page

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.