易截截图软件、单文件、免安装、纯绿色、仅160KB

ASP Encode/Decode Functions

http://www.aspnut.com/reference/encoding.asp
Server.URLEncode
Used for encoding data that will be passed via a querystring variable. A querystring variable is anything following the question mark (?) in the URL (location) field of your browser. You create querystring variables when you perform a redirect or build a hyperlink to another page on your site.
<a href="page2.asp?name=Joe+Schmoe">here</a>
<%
Response.Redirect "page2.asp?ID=3"
%>
In the example above, the hyperlink contains a variable named "name" which has a value of "Joe Schmoe" (the space is encoded as "+") In the Response.Redirect statement, we have a querystring variabled named "ID" with a value of 3. To perform a URL encode on a variable (for purposes of passing this variable to another page) use the following:
<a href="page2.asp?name=<%= Server.URLEncode(sName) %>">
here</a>
<%
Response.Redirect "page2.asp?ID=" &_
Server.URLEncode(nID)
%>
URLDecode
For some reason, Microsoft did not include a URL decode function with Active Server Pages. Most likely, this was because the decoding of querystring variables is done automatically for you when you access the querystring object:
<%= Request.QueryString("name") %>

For those of you who are desperately in need of this function:
' -----------------------------------------
' URL decode to retrieve the original value
Function URLDecode(sConvert)
Dim aSplit
Dim sOutput
Dim I
If IsNull(sConvert) Then
URLDecode = ""
Exit Function
End If

' convert all pluses to spaces
sOutput = REPLACE(sConvert, "+", " ")

' next convert %hexdigits to the character
aSplit = Split(sOutput, "%")

If IsArray(aSplit) Then
sOutput = aSplit(0)
For I = 0 to UBound(aSplit) - 1
sOutput = sOutput & _
Chr("&H" & Left(aSplit(i + 1), 2)) &_
Right(aSplit(i + 1), Len(aSplit(i + 1)) -


相关文档:

asp中实现无刷新加载图片验证码

<script language="JavaScript">
function reloadcode(){
var verify=document.getElementById('safecode');
verify.setAttribute('src','images/chknumber.asp?'+Math.random());
//这里必须加入随机数不然地址相同我发重新加载
}
</script>
<img src="images/chknumber.asp"&n ......

ASP WebService的开发步骤

WebService服务端开发
1、创建WebService工程,选择XFire Core库
2、创建业务接口和其实现类(完成业务方法的定义和实现)
3、修改配置文件service.xml
4、如果需要使用WSDL,则需要导入xalan.jar文件至WEB-INF/lib中
5、导出接口至jar包中为客户端做准备
WebService客户端开发
1、创建Web工程,添加构建路径,选择X ......

自己收集的各种ASP的验证码

由于项目的需要去Google搜了一下 ,还真多
记得“想当年”某天上午在这里路过,看到一位朋友贴的自己写的验证码程序,虽然他的程序是黑白有杂点,但其实很容易被破解的,但却有不少人喜欢着。。。没办法,当天下午研究了一翻 BMP 图片,然后就写出了这些代码,只是当初没有公布,眼看今天这么多坏人乱在很多论坛 ......

浅析ASP.NET 3.5与ASP.NET 4.0主要差别:

本文将为大家简单比较ASP.NET 3.5与ASP.NET 4.0之间主要差别,希望能对大家了解ASP.NET新特性有所帮助。
ASP.NET 3.5中下列特性是之前的版本中没有的:
  ·Ajax集成
  ·LINQ
  ·自动属性
  ·Lambda表达式
  同样,我希望每个人都弄清楚ASP.NET 3.5和它的下一个版本ASP.NET 4.0 ......

asp数据库操作

ASP连接数据库
  ASP连接11种数据库语法总结
  经常使用到有关数据库的操作。包括连接代码、SQL命令等等,又不曾刻意去记忆它们(我本人是不愿意去记这东东),所以常常在用到的时候又去查书本,翻来翻去。一些比较少用的数据库还不一定能顺利找到,所以现在把它们全归纳到这里,提供大家参考。
  <一>数据 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号