- 博客(14)
- 资源 (12)
- 收藏
- 关注
原创 支持断点续传﹐IE识的文件类型也不会在IE口中开启
System.IO.Stream iStream = null;byte[] buffer = new Byte[10240];int length;long dataToRead;string filename = System.IO.Path.GetFileName("filename.xls");try{iStream = new System.IO.FileStream(dfdo.Disk
2008-05-27 15:47:00 319
原创 C#读取一个目录,然后点击其中一个节点动态加载他的子目录和文件,节省开销
using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.We
2008-05-26 17:02:00 615
原创 c#递归 读取文件目录,然后绑定treeview
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { TreeNode tp = new TreeNode("0", "0"); Fun(@"F:/1月27日下午6点", tp); //for
2008-05-26 13:31:00 650
原创 自定义控件之事件回传
using System;using System.Collections.Generic;using System.ComponentModel;using System.Text;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;namespace JinXingWebControl{ [Defa
2008-05-22 10:06:00 492
原创 Response.AddHeader实现下载
/// /// Response.AddHeader实现下载 /// /// 完整的文件路径 /// 文件名 private void DownFile(string filePath, string fileName) { FileInfo fileInfo = new FileInfo(filePath); Response
2008-05-21 11:00:00 1724 1
原创 asp.net打印
B/S结构导致了Web应用程序中打印的特殊性。 ? 程序运行在浏览器中,打印机在本地,而文件确可能在服务器上,导致了打印控制不是很灵活。 ? 格式如何控制和定制等,是我们开发中可能会面对的问题。 打印文档的生成 ? 1、客户端脚本方式 一般情况下,主要使用JS 可以分析源页面的内容,将欲打印的页面元素提取出来,实现打印。通过分析源文档的内容,可以生成打印目标文档。
2008-05-21 10:23:00 763
原创 开发自定义控件样式(5)--webcontrol的独立方法与样式
using System;using System.Collections.Generic;using System.ComponentModel;using System.Text;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;namespace JinXingWebControl{ [Defa
2008-05-16 23:42:00 712
原创 最简单的自定义控件(4)--使用Viewstate最为属性的内部保存
using System;using System.Collections.Generic;using System.ComponentModel;using System.Text;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;namespace JinXingWebControl{ [Defa
2008-05-16 22:41:00 864
原创 最简单的自定义控件(3)--与HtmlTextWriter有关的枚举
using System;using System.Collections.Generic;using System.ComponentModel;using System.Text;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;namespace JinXingWebControl{ [Defa
2008-05-16 22:29:00 437
原创 最简单的自定义控件(2)--增加基本属性
private string paymentMethodText = "Payment Method"; private string creditCardNoText = "CreditCardNoText"; private string cardHolderNameText = "CardHolderNameText"; private stri
2008-05-16 21:52:00 343
原创 最简单的自定义控件(1)
protected override void Render(HtmlTextWriter writer) { writer.Write(""); writer.Write(""); writer.Write("Payment Method"); writer.Write("");
2008-05-16 21:34:00 470
转载 一般的c#面试笔试题
1)面向对象的语言具有__继承性_性、_封装性_性、_多态性 性。(2)能用foreach遍历访问的对象需要实现 _ IEnumerable 接口或声明_ GetEnumerator 方法的类型1.c#中的三元运算符是__?:__2.当整数a赋值给一个object对象时,整数a将会被__装箱___?3.类成员有__3__种可访问形式?4.public static const int A=1;
2008-05-13 14:58:00 2760
原创 17个人围成一圈,从第一个人开始报数,报到3的退出
using System;using System.Collections.Generic;using System.Text;namespace ConsoleApplication4{ class Program { static void Main(string[] args) { PersonList psl= new P
2008-05-09 13:21:00 2034
server 2012安装fx35 需要的资源 sxs
2019-06-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人