PRoblem及时显示在下拉列表中选择indexchanged [英] PRoblem in time display on dropdown selected indexchanged

查看:107
本文介绍了PRoblem及时显示在下拉列表中选择indexchanged的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里iam开发在线考试网站

考试开始时它的出勤时间

当我在这里选择主题时,完整的页面是回发和时间状态再次

i希望过来这次再次开始下拉选择''



这里iam在javaScript中使用计时器

和iam调用Body Onload上的那个函数



plz给了我你的建议

解决方案

检查页面的Postback属性并放入这样的回发中的计时器代码



  if (!IsPostBack){ 
startTimer();
}

private void startTimer(){
// 请在此处启动计时器。
}


here iam developing online exam site
when exam starts it dispay time
when i select subject on dropdown here complete page is postback and time statrs again
i want to over come this time start again on dropdown selection''

here iam using timer in javaScript
and iam calling that function on Body Onload

plz gave me ur suggestion

解决方案

Checkfor Postback property of page and put timer code inside postback like this

if(!IsPostBack){
    startTimer();
}

private void startTimer(){
    //Do start your timer here.
}


这篇关于PRoblem及时显示在下拉列表中选择indexchanged的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆