摘要: FileUploadFile 控件 protected void Button1_Click(object sender, EventArgs e) { string filePath = "", fileExtName = "", mFileName, mPath; if (this.FileUpload1.PostedFile.FileName != ... 阅读全文
posted @ 2008-06-08 00:31 坤哥 阅读(168) 评论(0) 推荐(0)
摘要: 这个主要用到了JS中的 window.open(url,windowname,location) url 目标窗口的url 如果url 是一个空字符串,浏览器将打开一个空白窗口 windowname window对象名称 location 窗口属性设置可选参数 Default.aspx 页如下 放置一个linkbutton,并写下事件处理 protected void LinkButton... 阅读全文
posted @ 2008-06-07 00:51 坤哥 阅读(748) 评论(0) 推荐(0)
摘要: using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts... 阅读全文
posted @ 2008-06-06 00:48 坤哥 阅读(754) 评论(0) 推荐(0)
摘要: 这个代码为checkcode.aspx 的CS文件,在index.aspx 上加个image空间 runat=server src="chenkcode.aspx" 就可 using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using Sys... 阅读全文
posted @ 2008-06-06 00:30 坤哥 阅读(250) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Text; namespace inherit { class Program { static void Main(string[] args) { Animal a = new zebra(); ... 阅读全文
posted @ 2008-06-06 00:11 坤哥 阅读(204) 评论(0) 推荐(0)
摘要: 数据库连接访问都是放在数据库访问类 SqlHelper.cs类里面 这里是保证程序的完成性 所以每个操作都加上了繁琐的操作 呵呵~~~~ SqlConnection con = new SqlConnection("server=.;uid=sa;pwd=123456;database=Member"); string sql = "select * from tbM... 阅读全文
posted @ 2008-06-05 01:01 坤哥 阅读(578) 评论(0) 推荐(0)
摘要: 先上传个效果图 和 代码 明天把文字补上 /Files/ivy/Redirect.rar int time = DateTime.Now.Hour.CompareTo(13); string str; if (time > 0) { str = "下午好"; } else if (t... 阅读全文
posted @ 2008-06-04 00:32 坤哥 阅读(718) 评论(0) 推荐(0)
摘要: 1.这个图就是这个留言本的数据表 2.这个图就是留言本的界面 就是 两个TextBox 和一个 Repeater 控件 3.IDE中的图 呵呵~ 4.下面就是运行的效果图了 这个例子非常简单,有说的就是 Repeater 控件 e.item.FindControl 方法找到 TextBox 的ID 继而用其值! /Files/ivy/GuestBook.rar 阅读全文
posted @ 2008-06-04 00:03 坤哥 阅读(272) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Text; namespace staticTest { class Program { static void Main(string[] args) { parrot parrot1 = new ... 阅读全文
posted @ 2008-06-03 18:40 坤哥 阅读(549) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Text; namespace staticTest { class Program { static void Main(string[] args) { Bird.showBird(); ... 阅读全文
posted @ 2008-06-03 17:34 坤哥 阅读(601) 评论(0) 推荐(0)