不是int 确实用他来排序
order by cast(price as int)
price为char 用到排序的时候,可以用这个方法
不是int 确实用他来排序
order by cast(price as int)
price为char 用到排序的时候,可以用这个方法
中文 "我们" 16进制 ced2c3c7
this.Response.Write(GetHexstr("ced2c3c7"));
/// <summary>
/// 获取gb2312编码的字符串
/// </summary>
...
<script type="text/javascript">
function ImageButtondisabled()
{
document.getElementById("ImageButton1").disabled="disabled";
document.getElementById("ImageButton2").disabled="disabled";
...
<script language="javascript" type="text/javascript" src="http://www.xxx.com/ddd.js"></script>
这样如果你的网页和调用的js编码格式不一致的话,就会出现乱码
解决方法:
加入js的编码格式
charset='gb2312'
<script language="javascript" type="text/javascript" charset='gb2312' src="http://www.xxx.com/ddd.js"></script>
...
一些遇到 css中有中文无法正常显示问题.
原因是 编码问题.
css的编码要和调用页面的编码一致.
一般建立css文件编码为ANSI 当网页编码为 UTF-8 时候 中文就会出现问题.
修改一下编码就可以了.
用记事本打开,另存为选择下面编码 为 UTF-8 就可以了.
今天修改一个程序.是用存储过程写的.
错误:未能找到存储过程
我存储过程用的少.
由于程序数据db helper不是我的,没有错误报告
我用了 3个小时(还有写逻辑的时间)才 发现 原来 复制时候 存储过程前面多了一个空格
很久没有这样停顿了.多么宝贵的时间呀....
调试 localhost 时候出现
无法在web服务器上启动调试,<html><head><title> Server Application Error</title></head><body><h1>Server Application Error</h1>The server has
encountered an error while loading an application during the kprocessing of your request. Please refer to the event log for more detail information
默认端口的时候,只写一个ip地址就可以了.
当非默认端口的时候.就有些不同。
IP,port
如 222.111.0.22,4567
sql2000的默认端口是1433
原来中间是一个逗号.
DES加密提示:指定键的大小对于此算法无效
密码长度要为 8...
Web Deployment Project
这个错误一般情况是下是由于开发人员采用复制aspx, ascx页面的方式而又没有更改新的页面的类定义导致的.
更改重复页面的类名 ,就可以通过..