| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 518 人关注过本帖
标题:[求助]本机上正常,发上服务器就有问题了。
只看楼主 加入收藏
jgh8041
Rank: 1
等 级:新手上路
帖 子:41
专家分:0
注 册:2004-12-12
收藏
 问题点数:0 回复次数:5 
[求助]本机上正常,发上服务器就有问题了。

1。在页面设计文件中控件上的中文字,都是乱码。
而在代码文件中对Lable控件的指定中文字正常。

2.一般的服务器都支持acces吧。我按原样发上去
怎么有问题呢。

在本机上都是正常的

搜索更多相关主题的帖子: 服务器 发上 
2006-06-16 11:25
小笨笨
Rank: 5Rank: 5
等 级:贵宾
威 望:19
帖 子:1169
专家分:0
注 册:2006-4-17
收藏
得分:0 

1、服务器上的语言设置和本机的可能不一样,比如说服务器上安装的是英文系统,对中文的支持就不能采用默认值了。

2、一般都支持,也不能排除不支持的,还有就是路径问题,服务器上的和本地的是否一致呢?


欢迎光临我的博客: http://smallfools.blog./default.html
2006-06-16 11:59
jgh8041
Rank: 1
等 级:新手上路
帖 子:41
专家分:0
注 册:2004-12-12
收藏
得分:0 
1 我对控件的文字属性都改了,也是这样。

2 我用的是MapPath("Aspnet.mdb"),路径没问题吧

全国最大的免费空间http://fw3./sysweb/RegTrans.aspx?CodeProvider=jgh8041
2006-06-16 17:25
小笨笨
Rank: 5Rank: 5
等 级:贵宾
威 望:19
帖 子:1169
专家分:0
注 册:2006-4-17
收藏
得分:0 

第一个问题:

先将Web.config的
<globalization
requestEncoding="utf-8"
responseEncoding="utf-8"
/>
改为
<globalization
requestEncoding="gb2312"
responseEncoding="gb2312"
/>
在每个页面上加上
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />


第二个问题:
把错误输出看一下,到底是哪里出错的。


欢迎光临我的博客: http://smallfools.blog./default.html
2006-06-16 21:30
jgh8041
Rank: 1
等 级:新手上路
帖 子:41
专家分:0
注 册:2004-12-12
收藏
得分:0 

Server Error in '/' Application.

Runtime Error

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>

全国最大的免费空间http://fw3./sysweb/RegTrans.aspx?CodeProvider=jgh8041
2006-06-17 12:33
jgh8041
Rank: 1
等 级:新手上路
帖 子:41
专家分:0
注 册:2004-12-12
收藏
得分:0 
文字方面我按你说的,都加了。
在web.confing和主页面里。

[此贴子已经被作者于2006-6-17 12:57:55编辑过]


全国最大的免费空间http://fw3./sysweb/RegTrans.aspx?CodeProvider=jgh8041
2006-06-17 12:56
快速回复:[求助]本机上正常,发上服务器就有问题了。
数据加载中...
 
   



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

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