代码改变世界

验证码的全部代码(注意两种JavaScript的写法)

2018-04-16 15:18 by 鹏宝宝, 1100 阅读, 0 推荐, 收藏,
摘要:<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title></title> <script src="js/jquery-1.5.2.js"></scr 阅读全文

点击链接弹出确定框,加载页面弹出对话框

2018-04-16 14:42 by 鹏宝宝, 788 阅读, 0 推荐, 收藏,
摘要:<html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <title></title> <script type="text/javascript">alert('haha')</script> 阅读全文

基础form

2018-04-09 19:30 by 鹏宝宝, 132 阅读, 0 推荐, 收藏,
摘要:<form action="login.ashx"> 帐号:<input type="text" name="name" /> 密码:<input type="password" name="password" /> <input type="submit" /> </form> 阅读全文

验证码

2018-04-09 14:01 by 鹏宝宝, 148 阅读, 0 推荐, 收藏,
摘要:public void ProcessRequest(HttpContext context) { context.Response.ContentType = "image/jpeg"; Random rd = new Random(); int a = rd.Next(1000,10000); 阅读全文

图片上传并绘制水印

2018-04-02 21:10 by 鹏宝宝, 169 阅读, 0 推荐, 收藏,
摘要:using (Image img = Bitmap.FromStream(file1.InputStream))//** { using (Graphics g = Graphics.FromImage(img)) using (Font font = new Font(FontFamily.Gen 阅读全文

Person类

2018-04-01 15:11 by 鹏宝宝, 136 阅读, 0 推荐, 收藏,
摘要:class Person { public string Name { get; set; } public int Age { get; set; } public void SayHi() { Console.WriteLine("大家好,我叫" + Name + ",今年" + Age + " 阅读全文

最简单的html

2018-03-30 21:15 by 鹏宝宝, 202 阅读, 0 推荐, 收藏,
摘要:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head> <meta http-equiv="Content-Type" con 阅读全文

EF_数据库连接配置

2018-02-11 08:09 by 鹏宝宝, 738 阅读, 0 推荐, 收藏,
摘要:<connectionStrings> <add name="connstr" connectionString="Server=localhost;Database=HeiMa;uid=sa;pwd=123" providerName="System.Data.SqlClient"/> </con 阅读全文

数据库连接配置_控制台

2018-02-11 07:38 by 鹏宝宝, 228 阅读, 0 推荐, 收藏,
摘要:<connectionStrings> <add name="connstr" connectionString="Data Source=.;Initial Catalog=HeiMa;User ID=sa;Password=123" providerName="System.Data.SqlCl 阅读全文

数据库连接配置

2018-02-06 21:02 by 鹏宝宝, 114 阅读, 0 推荐, 收藏,
摘要:<connectionStrings> <add name="connstr" connectionString="Server=localhost;Database=HeiMa;uid=sa;pwd=123"/> </connectionStrings> 阅读全文