C#语言做网页的倒计时怎么实现,不要用timer控件和其它脚本语言可以实现吗?

解决方案 »

  1.   

    楼主我的回答您别生气,你的问题就好像是书中说的重复发明轮子,有那时间可以研究下别的问题,c#里的timer控件是很实用的一个东西了。
      

  2.   

    可以,使用线程例:using System.threading;
    form_Load(...)
    {
    Thread thread=new Thread(this.Test);
    thread.IsBackGround=true;
    thread.start();
    }
    void Test()
    {
       //Do some thing
    }不过如果在线程里操作控件请使用BackWorker控件
    或者使用委托。
      

  3.   

    忘记了最重要一件事,修改以上代码using System.threading;Thread thread=new Thread(this.Test);
    thread.IsBackGround=true;
    thread.start();
    class a
    {
    page_Load(...)
    {
    }
    void Test()
    {
      thread.sleep(1000);//停止一秒
      //Do some thing
    }
    }
      

  4.   

    javascript setTimeout()啊,用什么Timer.
      

  5.   

    晕,你也不用后台刷新控件,也不用前台脚本实现,你自己写个ActiveX控件吧~