标题:asp.net问题,新手,求解决!
取消只看楼主
wasdwasd0302
Rank: 1
等 级:新手上路
帖 子:7
专家分:5
注 册:2013-5-13
结帖率:100%
已结贴  问题点数:20 回复次数:0 
asp.net问题,新手,求解决!
<script type="text/javascript">        
    function hide() {            
        document.getElementById('td11').style.display = 'none'; }
</script>



<tr  id="td11">                           
<td>模板行</td>                           
<td>/  </td>                           
<td>/  </td>                           
<td>                                
<%                                    
double delay = 0;                                    
string timebegin1 = "04-26";                                    
string timeend1 = "06-25";                                    
string time1 = DateTime.Now.ToString("MM-dd");                                    
if ((timebegin1.PadLeft(5, '0')) > 0 && (timeend1.PadLeft(5, '0')) < 0)                                    
{                                       
delay = 30;                                   
}                                      
else 。。。。。。                                
%>                                
<%=Math.Round(delay, 2)%>                           
</td>  
</tr>
上面是主要的代码,我这边想达到的效果是:如果日期范围不在4-26和6-25号之间的话,要显示的的“模板行”调用相应代码给隐藏起来,请问该肿么写啊!
搜索更多相关主题的帖子: javascript function double 
2013-05-13 11:36



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-406954-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.066254 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved