如果要将查询结果导出到Excel,只需将页面的Context-Type修改一下就可以了:header( "Content-Type:
application/vnd.ms-excel">如果希望能够提供那个打开/保存的对话框,Content-Disposition参数,Content-Disposi...
分类:
其他好文 时间:
2014-05-26 15:51:15
阅读次数:
172
数据库表结构《1》新增数据,并且按照"name"
字段查询,如果重复返回“error”=-100 ,如果成功返回ID,如果失败ID=0USE [数据库]GOSET ANSI_NULLS ONGOSET
QUOTED_IDENTIFIER ONGOALTER procedure [dbo].[存储过程...
分类:
数据库 时间:
2014-05-26 15:43:33
阅读次数:
279
编号需要修改的代码1//// Prefix header//// The contents
of this file are implicitly included at the beginning of every source
file.//#import//服务器IP#define kXMPP...
分类:
移动开发 时间:
2014-05-26 14:51:52
阅读次数:
782
1 s = s.replace("\n\r", "");2 s = s.replace("\r\n",
"");//这才是正确的!3 s= s.replace("\t", "");4 s =s.replace(" ", ""); ///这个按需要看自己是否要加,
我的不需要 也就没...
分类:
其他好文 时间:
2014-05-26 10:52:10
阅读次数:
237
1. Accept:告诉WEB服务器自己接受什么介质类型,*/* 表示任何类型,type/*
表示该类型下的所有子类型,type/sub-type。2. Accept-Charset: 浏览器申明自己接收的字符集Accept-Encoding:
浏览器申明自己接收的编码方法,通常指定压缩方法,是否支...
分类:
Web程序 时间:
2014-05-26 08:49:31
阅读次数:
223
//一般处理,无参数示例public JsonResult Test(){ Something...
return Json{new{Success=true,Msg="Error!",...}}; //return
Json(new{Success=fals,Msg="ok",...},Js...
分类:
Web程序 时间:
2014-05-26 08:44:39
阅读次数:
326
在用c#生成应用程序的时候,读写dbf时,open方法出错ERROR [IM002]
[Microsoft][ODBC 驱动程序管理器]
未发现数据源名称并且未指定默认驱动程序以前这个程序是用着好好的,本次升级修改后测试发现这个问题,追根求源,原来本人是32位操作系统,现在装了win7
64位的操....
分类:
数据库 时间:
2014-05-26 08:21:50
阅读次数:
794
报错:Access restriction: The method
decodeBuffer(String) from the type CharacterDecoder is not accessible due to
restriction on required libraryAccess r...
分类:
数据库 时间:
2014-05-26 07:30:24
阅读次数:
279
在64位 Windows 7中水晶报表的错误:Crystal Report Error: Either
the Crystal Reports registy key permission are insufficient or the Crystal
Reports runtime is not ...
分类:
其他好文 时间:
2014-05-26 06:38:07
阅读次数:
219
因为网页上还有其他内容,所以header("Content-type:image/jpeg");
位置已经被占用,验证码不能出现了,就会出现图像“http://localhost/**.php”因其本身有错,无法显示”那么,解决这个问题的最简单的办法就是,直接删除header("Content-ty...
分类:
Web程序 时间:
2014-05-24 10:29:56
阅读次数:
308