一.HTTP请求处理1.获取GET请求数据ASP.NET:Request.QueryString[name]JSP:request.getParameter(String
name);2.解决字符串乱码问题:NameValueCollection coding;coding = HttpUtilit...
分类:
Web程序 时间:
2014-05-20 02:37:14
阅读次数:
317
在Silverlight中ListBox是一个非常强大的控件。总结下ListBox的绑定数据的方式。 首先,新建一个Book类,1 public class
Book2 {3 public string BookName { get; set; }4 5 ...
分类:
Web程序 时间:
2014-05-20 01:59:10
阅读次数:
414
一、查看虚拟目录是否存在private bool
IsExitesVirtualDir(string virtualdirname){ bool exited =false; DirectoryEntry
_entry = new DirectoryEntry("IIS://localhost/W3...
分类:
Web程序 时间:
2014-05-20 01:56:24
阅读次数:
401
先写一个类#region Using directivesusing System;using
System.Text;#endregionnamespace Ean13Barcode2005{public class Ean13{private
string _sName = "EAN13";pr...
分类:
其他好文 时间:
2014-05-17 15:17:03
阅读次数:
398
转自:http://phinecos.cnblogs.com/ 1
#!/usr/bin/python 2 #coding=utf-8 3 4 #@author:dengyike 5 #@date:2010-09-28 6
#@version:1.0 7 #@description:...
分类:
编程语言 时间:
2014-05-17 15:06:38
阅读次数:
405
在ASP.NET中,开发人员经常使用Response.Redirect()方法,用编程的手法,将对老的URL的请求转到新的URL上。但许多开发人员没有意识到的是,Response.Redirect()方法发的是个
HTTP 302 Found (临时转向) 回复,会在用户尝试访问老的URL时,导.....
分类:
其他好文 时间:
2014-05-17 15:02:03
阅读次数:
273
using System;using System.Collections.Generic;using
System.Linq;using System.Text;namespace 对象引用{ class Program { static void
Main(string...
分类:
其他好文 时间:
2014-05-17 14:30:19
阅读次数:
279
1.定义字符串可以直接在头文件下定义,如:#include<stdio.h>#definehello"helloworld!"2.sizeof()和strlen()sizeof运算符是以字节为单位给出数据的大小,strlen()是以字符为单位给出长度。<string.h>包含许多与字符串相关的函数的原型,包括strlen()sizeof运算..
分类:
其他好文 时间:
2014-05-16 02:39:31
阅读次数:
211
一、简介py2exe是一个将python脚本转换成windows上的可独立执行的可执行程序(*.exe)的工具,这样,你就可以不用装python而在windows系统上运行这个可执行程序。py2exe已经被用于创建wxPython,Tkinter,Pmw,PyGTK,pygame,win32comclient和server,和其它的独立程序。py2exe是发布..
分类:
编程语言 时间:
2014-05-16 02:38:07
阅读次数:
261
昨天做了python客户端和服务器端通信,并把接收到的信息写到数据库,因为对数据库进行操作是个经常调用的行为,所以我想把调用数据库的操作写成一个module来给其它python程序调用,所以将昨天的服务器端程序拆分为两个文件:1、主程序python.py#!/usr/bin/envpython
importsock..
分类:
编程语言 时间:
2014-05-16 02:31:18
阅读次数:
386