在IIS 6中部署时不显示“当前日期" [英] Current Date not displayed when deployed in IIS 6

查看:66
本文介绍了在IIS 6中部署时不显示“当前日期"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我在应用程序中使用Datetime.Now在页面加载中显示当前日期.它的工作正常,但当我在IIS 6中部署日期时,文本框未显示它,但在IIS5中部署时,它运行良好.我可以知道这是什么问题吗?IIS中是否有任何日期设置

Hi in my application i m displaying current date on page load using Datetime.Now. Its working fine but when i deploy in IIS 6 date is not displayed in Textbox but it works fine when deployed in IIS5.Can i know what may be the Problem is there any date settings in IIS

推荐答案

我假设您是说这是一个ASP.NET应用程序?我非常怀疑IIS是否会导致DateTime.Now不返回任何内容,从而改变代码的运行方式.我认为您需要告诉我们更多信息,并发布一些代码.我确定问题不是IIS的版本.
I assume you meant to say this is an ASP.NET application ? I doubt very much that IIS would change how your code runs, by causing DateTime.Now to not return anything. I think you need to tell us more, and post some code. I feel sure the issue is not the version of IIS.


这篇关于在IIS 6中部署时不显示“当前日期"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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