How to redirect to another page after a delay

前端 未结 3 1571
太阳男子
太阳男子 2021-02-15 12:43

I have a sign-in box in my webpage which is inside an UpdatePanel



        
3条回答
  •  庸人自扰
    2021-02-15 13:24

    first create a function that makes the action you need (redirect to page for example)

    Second add timer to your markup and set the time interval to 5000 ( 5 sec) and mark the timer as enabled=false so the timer wont start after the page loading

    once the user is validated successfully, show the message you want then enable the timer

提交回复
热议问题