1 新建一般处理程序 .ashx public void ProcessRequest
(HttpContext context) { context.Response.ContentType =
"text/plain";context.Response.Write("Hello W...
分类:
其他好文 时间:
2014-05-26 07:24:18
阅读次数:
221
SharePoint Development - Custom Content Type using Visual Studio 2010 based SharePoint 2010
本文主要讲述使用Visual Studio开发基于SharePoint 2010的自定义内容类型,本篇加上后续的几篇合起来会构成一个相对全面的自定义列表...
分类:
其他好文 时间:
2014-05-26 05:32:37
阅读次数:
216
http://blog.csdn.net/kerrywang/article/details/4454895pageEncoding
在JSP标准的语法中,如果
pageEncoding属性存在,那么JSP页面的字符编码方式就由pageEncoding决定,否则就由contentType属性中的 c...
分类:
其他好文 时间:
2014-05-25 16:06:10
阅读次数:
332
Web文件的ContentType类型大全-来自网络ContentType属性指定服务器响应的HTTP内容类型。如果未指定ContentType,默认为text/html。在ASP中使用它:
".*"="application/octet-stream" ".001"="applicatio...
分类:
Web程序 时间:
2014-05-24 02:23:09
阅读次数:
411
根据SPContentType新建ItemItem01["ContentTypeId"] =
LinkCT.Id;Item01.Update();取SharePoint Build-In ContentType或者ColumnSPContentType
LinkCT = web.ContentTyp...
查询博客中相同文章类别总共有多少文章
T_Content 博客表
T_ContentType 博客类别表
string sql = "select (select count(*) from T_Content where FTypeId=T.FID) as num from T_ContentType AS T"...
分类:
其他好文 时间:
2014-05-12 07:00:52
阅读次数:
294
publicvoidDownLoad(stringwordcode,stringwordname,stringwordcopyright)
{
stringoutfn="p_w_upload;filename={0}.txt";
Response.ContentType="application/txt;charset=GB2312";
Response.AddHeader("Content-Disposition",string.Format(outfn,wordcode));
Response.Write..
分类:
其他好文 时间:
2014-05-08 16:50:54
阅读次数:
269
form表单有一个serialize()方法,可以序列化表单的值,但是jquery提供的这个方法会把数据序列化为类似下面的形式:
a=1&b=2&c=3&d=4
jquery并没有提供将表单数据序列化为json的方法,所以需要我们自己封装一下,下面给出代码和测试样例,先写一个js文件:
$.ajaxSetup({
contentType: "application/x-www-for...
分类:
Web程序 时间:
2014-05-04 00:14:14
阅读次数:
320
{使用一般处理程序动态生成验证码}1.新建WebSite项目,添加一般处理程序命名为yzm.ashx,添加如下代码:
public void ProcessRequest(HttpContext context) {
//将context.Response.ContentType = "text/p...
分类:
Web程序 时间:
2014-04-29 18:33:35
阅读次数:
501
原文:BMP图片转换为JPEG图片昨天在家学习,发现很多人把BMP图片转换为其它图片格式,有些人写得简单,有些人写得复杂。Insus.NET在想,一直在做文件上传,下载,或是图片剪切,都有进行过文件另存,在另存时,还需指定ContentType。
你可以在MSDN: http://msdn.micr...
分类:
其他好文 时间:
2014-04-29 10:42:46
阅读次数:
433