2010年6月2日

ASP.NET中随机生成验证码

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Drawing;public partial classCheckCode : System.Web.UI.... 阅读全文

posted @ 2010-06-02 21:17 nazo0127 阅读(923) 评论(0) 推荐(0)

2010年5月22日

ASP.NET中页面传值

摘要: <一>在接收页 的html代码里加上一行: <%@ Reference Page = "WebForm1.aspx" %> WebForm1 webForm=(WebForm1)Context.Handler; this.TextBox1.Text=webForm.name;<二>在发送页 Server.Transfer("WebForm1.aspx?name... 阅读全文

posted @ 2010-05-22 21:49 nazo0127 阅读(174) 评论(0) 推荐(0)

2010年5月15日

一个简单的存储过程

摘要: 存储过程实现循环取出以特定字符间隔的字符串的单个字符串比如:ab,cdsfd,efdf,owoief,lows实现存储过程后的结果为:abcdsfdefdfowoieflows这样就可以对这些数据进行循环执行操作存储过程:if exists(select * from sysobjects where name='proc_ids')drop procedure proc_idsgocreate ... 阅读全文

posted @ 2010-05-15 18:49 nazo0127 阅读(844) 评论(1) 推荐(0)

2010年5月8日

保存图片虚拟地址到数据库

摘要: protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { SqlConnection con = db.ceratcon(); con.Open(); SqlCommand cmd = new SqlCommand("select * from uploadimage ", con); SqlDataRead... 阅读全文

posted @ 2010-05-08 21:16 nazo0127 阅读(348) 评论(0) 推荐(3)

导航