Google [站内搜索]

分类: Web编程预览模式: 普通 | 列表

[私密日志] 私密日志

该日志是私密日志,只有博主或发布者可以查看!
分类:Web编程 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 1940

C#使用SOAP调用Web Service

using System;
using System.IO;
using System.Net;
using System.Text;

查看更多...

分类:Web编程 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 18755

C#使用BinaryWriter和BinaryReader读写文件

C#的FileStream类提供了最原始的字节级上的文件读写功能,但我们习惯于对字符串操作,于是StreamWriter和StreamReader类增强了FileStream,它让我们在字符串级别上操作文件,但有的时候我们还是需要在字节级上操作文件,却又不是一个字节一个字节的操作,通常是2个、4个或8个字节这样操作,这便有了BinaryWriter和BinaryReader类,它们可以将一个字符或数字按指定个数字节写入,也可以一次读取指定个数字节转为字符或数字:

//写入
using (FileStream fs = new FileStream(@"D:\Binary", FileMode.Create))
{

查看更多...

分类:Web编程 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 11045

ASP读取JPG图像Exif信息类

<%
const IFD_IDX_Tag_No = 0
const IFD_IDX_Tag_Name = 1
const IFD_IDX_Data_Format = 2
const IFD_IDX_Components = 3

查看更多...

分类:Web编程 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 9399

C#读取JPG图像Exif信息类

using System;
using System.IO;
using System.Text;
using System.Collections.Generic;

查看更多...

分类:Web编程 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 11324

C#获取图像Exif信息

using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.Drawing.Imaging;

查看更多...

分类:Web编程 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 5355
protected void Page_Load(object sender, EventArgs e)
{
    Response.Headers.Add("P3P", "CP=CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR");
    Response.Cookies["domain"].Value = "mzwu.com";
    Response.Write(Request.Cookies["domain"].Value);

查看更多...

分类:Web编程 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 16967

C# short,int,long转byte[]

在做字符串保存为文本时,经常有要求使用n(2,4,8)个字节来保存一个字符,如下边例子:

string content = "木子屋(http://www.mzwu.com/)";

//2字节存储

查看更多...

分类:Web编程 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 18599

JSON解析类(C#) 改进版

//using System.Collections.Generic;
//using System.Text;
//using System.Text.RegularExpressions;

/// <summary>

查看更多...

分类:Web编程 | 固定链接 | 评论: 15 | 引用: 0 | 查看次数: 25952

JSON解析类(C#)

//using System.Collections.Generic;
//using System.Text;
//using System.Text.RegularExpressions;

/// <summary>

查看更多...

分类:Web编程 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 13822