文章分类 - c#
摘要:1 /// 2 /// 文件类 3 /// 版本1.0 4 /// 主要功能,对文件的增删改查 5 /// 6 public class Text 7 { 8 FileInfo file = null; 9 ...
阅读全文
摘要:if (Convert.ToInt64(Session["tokentime"]) < DateTime.Now.Ticks) { Session["tokentime"] = Dat...
阅读全文
摘要:using Microsoft.VisualBasic;using System.Data.SqlClient;public class WxUser{ public WxUser() { // VBConversions Note: Non-static class va...
阅读全文
摘要:1 Imports Microsoft.VisualBasic 2 Imports System.IO 3 Imports System.Security.Cryptography 4 Imports System 5 Imports System.Text 6 Imports Sys...
阅读全文
摘要:int a = 12345678; //格式为sring输出// Label1.Text = string.Format("asdfadsf{0}adsfasdf",a);// Label2.Text = "asdfadsf"+a.ToString()+"adsfasdf";// Label1.Text = string.Format("asdfadsf{0:C}adsfasdf",a);//asdfadsf¥1,234.00adsfasdf// Label2.Text = "asdfadsf"
阅读全文
摘要:http://www.cnblogs.com/lovecherry/archive/2007/08/13/853754.html
阅读全文
摘要:1 aspx设计页面 2 //这个是检测按钮,检测下面的checkbox是否被选中。选中时打印其值 3 4 第一种设计:(.net 自带的) 5 6 7 8 9 第二种设计:(html 自带的,但含有runnat="server") 10 11 12 第三种设计:(html 自带的) 13 14 15 aspx.cs文件 (将按照对应的上面的三种设计模式去写后台代码。其他的单选按钮也类似。) 16 protected void Button1_Click(object sender, EventArgs e) 17 { 18 //这个是...
阅读全文
摘要:1 using System.Runtime.Serialization.Formatters.Binary; 2 using System.IO; 3 4 [Serializable] 5 public class con 6 { 7 public string name; 8 public string pwd; 9 }10 //序列化11 public static void serizlize(object o)12 {13 BinaryFormatter MyBF = new BinaryFor...
阅读全文

浙公网安备 33010602011771号