- 博客(18)
- 资源 (1)
- 收藏
- 关注
原创 datagrid分页排序选择 例子(C#)
Imports System.Data.SqlClientPublic Class WebForm1 Inherits System.Web.UI.Page#Region " Web 窗体设计器生成的代码 " 该调用是 Web 窗体设计器所必需的。 Private Sub InitializeComponent() End Sub Protecte
2007-12-21 17:22:00
478
原创 简单的一个自定义分页(C#)
using System.Data.OleDb;private void Page_Load(object sender, System.EventArgs e) { // 在此处放置用户代码以初始化页面 OleDbConnection objConn=new OleDbConnection (@"Provider=Microsoft.Jet.OLEDB.4.0; Data Sour
2007-12-21 17:21:00
564
原创 c#写的一个简单的邮件发送系统
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;using
2007-12-21 17:20:00
952
转载 上传 下载 简单例子(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
2007-12-19 15:47:00
496
原创 MD5算法的两种应用(c#)不是加密 只是一种数据转换
同时输入“111”用 1。String pwd = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(TextBox1.Text, "MD5");2。byte[] bytes = new System.Text.UnicodeEncoding().GetBytes(TextBox1.Text
2007-12-19 10:13:00
563
原创 关于把图片存入ACCESS形成二进制文件进行图片绑定显示(c#版)
注意:本演示需要创建两个aspx文件一个为default2.aspx 一个为default3.aspx一个数据库文件 表名为photo ID:自动增长类型 Image:ole类型;ImageType:文本类型(本演示代码为网上复制粘贴,本人只是进行了详细说明和组织)-----------------------------------------------------------dafault
2007-12-18 11:20:00
1288
原创 验证IP的方法 (c#)
using System.Text.RegularExpressions;public bool isIP(string ip) { string pattern = @"(((/d{1,2})|(1/d{2})|(2[0-4]/d)|(25[0-5]))/.){3}((/d{1,2})|(1/d{2})|(2[0-4]/d)|(25[0-5]))";
2007-12-16 22:38:00
684
原创 一个连接ACCESS数据库常报的错误
IErrorInfo.GetDescription 因 E_FAIL(0x80004005) 而失败。原因 select列有关键字问题
2007-12-16 22:35:00
474
原创 JSP用记事本当数据库验证用户登陆问题
分3个页面reg.jsp 注册Tootidea涂图计划会员 .style1 { color: ForestGreen; font-size: 14px; } .style2 { color: red; font-size: 14px; }--> ratingMsgs = new Array(6); ratingMsgColors = new Array(6); barColor
2007-12-02 19:10:00
1704
转载 一个应聘的笑话
面试官:熟悉哪种语言应聘者:Java。面试官:知道什么叫类么应聘者:我这人实在,工作努力,不知道什么叫累面试官:知道什么是包?应聘者:我这人实在 平常不带包 也不用公司准备了面试官:知道什么是接口吗?应聘者:我这个人工作认真。从来不找借口偷懒M:知道什么是继承么Y:我是孤儿没什么可以继承的M:知道什么叫对象么?M:知道,不过我工作努力,上进心强,暂时还没有打算找对象。M:知道多态么?Y:知道,
2007-12-02 19:04:00
718
原创 关于两个页面传递参数来显示图片
ex class FileJSP implements FilenameFilter { String str=null; FileJSP(String s) { str="."+s; } public boolean accept(File dir,String name)
2007-11-25 16:46:00
1433
原创 关于jsp相对路径
exString str1=request.getRequestURI();String str2=application.getRealPath(request.getRequestURI());String str3=application.getRealPath("/");String str4=new File(application.getRealPath(request.getRequ
2007-11-25 16:41:00
1050
原创 关于INPUT中不能输入空格
function space(){var str=document.getElementById("pwd").value;if (str.indexOf(" ")>0){document.getElementById("pwd").focus();document.getElementById("pwd").value="";document.getElementById("Label7").i
2007-11-25 10:09:00
3234
原创 关于不能动态生成SQL错误
SqlConnection sqlcon = new SqlConnection(ConfigurationManager.ConnectionStrings[1].ConnectionString); SqlDataAdapter sqlda = new SqlDataAdapter("select * from web", sqlcon); DataSet ds =
2007-11-25 10:09:00
583
2
原创 关于密码对比
function Juge(){ if (document.getElementById("pwd").value != document.getElementById("Password1").value) { document.getElementById("pwd").focus();document.getElementById("pwd").value="";doc
2007-11-25 10:08:00
450
原创 关于密码强度
最近百度了一下GOOGLE的密码强度的方法实验成功了贴上代码方便大家使用:"http://www.w3.org/TR/html4/loose.dtd">无标题文档密码:style="FONT-FAMILY: arial,sans-serif">长度必须最少包含 6 个字符。密码强度: ratingMsgs = new Array(6); rati
2007-11-25 10:07:00
515
原创 关于验证码
先建立一个名为 CheckCode.aspx(当然名字可以自己改)其中代码如下:(注:此代码不是原创,我稍更改,使的比较完善)(c#版)using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;us
2007-11-25 10:05:00
437
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人