怪我咯
浏览量7875 | 粉丝289 | 关注2
2017-03-30 13:31:51
asp.net实现简单数字验证码实例
调用 验证码:<input type="text" id="txtValidate" style="border: solid 1px #9B9B9B; width: 85px; height: 17px;" /> <img src="Rnd.aspx" mce_src="Rnd.aspx" style="width: 5
1948
2017-03-30 13:30:07
在ASP文件中调用DLL的方法
动态联接库(DLL)是加快应用程序关键部分的执行速度的重要方法,但有一点恐怕大部分人都不知道,那就是在ASP文件也能通过调用DLL来加快服务器的执行速度,下面我简单的介绍一下在ASP文件调用DLL的步骤。 首先,必须得有DLL文件,本例是通过VB5.0创建ActiveX DLL文件,这个文件模拟了一个掷色
1723
2017-03-30 13:27:24
ASP生成随机密码的两个函数
ASP生成随机密码的两个函数:函数一<%function makePassword(byVal maxLen)Dim strNewPassDim whatsNext, upper, lower, intCounterRandomizeFor intCounter = 1 To maxLenwhatsNext = Int((1 - 0 + 1) * Rnd + 0)If whatsNext = 0 Then'characterupper = 90lower = 65Elseupper = 5
1706
2017-03-30 13:25:17
ASP.NET简单的格式转换方法
1.int str_a=”33”int i_a=Convert.ToInt16(str_a);转换为短整型(16)2.charchar_a;char_a=Convert.ToChar(65);Response.Write(char_a); 将SCII码表的65转成字符;结果为A1. char_a; char_a=”hello world”.ToCharArray();将字符串转为字符型数组2. 自动转换类型;int age=10
1595
2017-03-30 13:23:07
2017-03-30 13:18:33
教你一招:ASP网站挂木马怎么办?
运行环境如下:服务器操作系统:Win2003/2008Web应用软件:IIS 6.0/7.0运行问题:学院有几个Asp网站在访问的时候显示:An error occurred on the server when processing the URL. Please contact the system administrator。或者报其他的错识,或者是运行非常缓慢,并且会在网站的根目录下或是
1505
2017-03-30 11:56:05
解析DataBinder_Eval的用法
-------DataBinder所有用法------------------<%# Bind("Subject") %> //绑定字段<%# Container.DataItemIndex + 1%> //实现自动编号<%# DataBinder.Eval(Container.DataItem, "") %> 通常使用的方法<%# DataBinder.Eval(Container.DataItem, "
1300
2017-03-30 11:53:49
在ASP.NET中上传下载文件实例代码
using System.IO;//检查上传文件不为空 if(File1.PostedFile!=null) { string nam = File1.PostedFile.FileName ; //取得文件名(抱括路径)里最后一个"."的索引 int i= nam.LastIndexOf("."); //取得文件扩展名 string new
1878
2017-03-30 11:48:37
ASP.NET MVC路由配置(图文详解)
先说一下基本的路由规则原则。基本的路由规则是从特殊到一般排列,也就是最特殊(非主流)的规则在最前面,最一般(万金油)的规则排在最后。这是因为匹配路由规则也是照着这个顺序的。如果写反了,那么即便你路由规则写对了那照样坐等404.XD 首先说URL的构造。 其实这个也谈不上构造,只是语法特
2110
2017-03-30 11:37:43
一段asp.net DES加密解密的代码
//加密 public string DesEncrypt(string strText, string strEncrKey) { byte[] byKey=null; byte[] IV= {0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF}; try { byKey = System.Text.Encoding.UTF8.GetBytes(strEncrKey.Substring(0,8)); DES
1915