03 2014 档案
using 名称空间指定一个别名
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using reflector = System.Reflection;namespace ConsoleApplication2{ class Program { static void Main(string[] args) { reflector::Assembly assembly = reflector....
阅读全文
ASP.NET的一般处理程序对图片文件的基本操作
摘要:以一个小项目为例: 验证码: ashx文件: html调用: 上传文件: html文件: 下载文件: html: 相关项目文件:http://pan.baidu.com/s/1eQmopOm
阅读全文
ASP.NET的一般处理程序对数据的基本操作
摘要:TableList.ashx: DataList.html: Add.ashx: Delete.ashx: Modify.ashx: OperationModel.html: CommonHelper.cs: Web.config: 三层代码可以参考前几篇的文章。项目文件:http://pan.ba
阅读全文
取数组的元素值和地址
摘要:// 数组的取值和地址.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include #include //操作符头文件using namespace std;int _tmain(int argc, _TCHAR* argv[]){#pragma region 一维 int arrOneDimension[]={1,2,3,4,5,6,7,8,9}; for (int i = 0; i < 9; i++) { //cout<<arrOneDi
阅读全文
在多项目中再次解读多层编程理念
摘要:项目列表:注意代码: public List Select(string id) { string sql = "select * from tblStudentInfo where 学号 like '%" + @id + "%'"; //string sql = "select * from tblStudentInfo where 学号 like '%@id%'"; SqlHelper helper = new SqlHelper(); using (DataTable dt...
阅读全文