Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 WebServiceµÄ¿ª·¢²½Öè

WebService·þÎñ¶Ë¿ª·¢
1¡¢´´½¨WebService¹¤³Ì£¬Ñ¡ÔñXFire Core¿â
2¡¢´´½¨ÒµÎñ½Ó¿ÚºÍÆäʵÏÖÀࣨÍê³ÉÒµÎñ·½·¨µÄ¶¨ÒåºÍʵÏÖ£©
3¡¢ÐÞ¸ÄÅäÖÃÎļþservice.xml
4¡¢Èç¹ûÐèҪʹÓÃWSDL£¬ÔòÐèÒªµ¼Èëxalan.jarÎļþÖÁWEB-INF/libÖÐ
5¡¢µ¼³ö½Ó¿ÚÖÁjar°üÖÐΪ¿Í»§¶Ë×ö×¼±¸
WebService¿Í»§¶Ë¿ª·¢
1¡¢´´½¨Web¹¤³Ì£¬Ìí¼Ó¹¹½¨Â·¾¶£¬Ñ¡ÔñX ......

asp to html

<!--#include file="inc/conn.asp" -->
<%
openconn()
sql="select * from tbnews"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,3
id=rs("id")
%>
<%
do while not rs.eof
%>
<%
Do_Url = "http://"
'Do_Url = Do_Url&Request.ServerVariables("SERVER_NAME ......

asp¶ÁÈ¡XMLÎļþ

<%
'
Set http=Server.CreateObject("Microsoft.XMLHTTP")
http.Open "GET","http://127.0.0.1/1.xml",False
http.send
Dim xml
Set xml = Server.CreateObject("Microsoft.XMLDOM")
xml.async = False
'xml.load (Server.MapPath("1.xml"))¡¡'Èç¹û²»ÊÇÔ¶³ÌÎļþÖ±½ÓÕâÒ»²½
xml.Load(http.ResponseXML)
Dim t ......

dzÎö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»ñÈ¡µ±Ç°ÎļþÃûµÄ·½·¨ ÀûÓú¯ÊýInstrRev()

¡¡¡¡ÔÚASP±à³ÌµÄ¹ý³ÌÖУ¬»ñÈ¡µ±Ç°²Ù×÷µÄÎļþµÄÎļþÃû£¬ÊÇÒ»¸ö·Ç³£³£ÓõĶ¯×÷£¬ASPºÃÏñûÓÐ×Ô¼ºÄÚÖú¯Êý£¬ËùÒÔÕâ¸ö²Ù×÷ÎÒÃÇÐèÒª×Ô¼º±àº¯ÊýÀ´Íê³É¡£½ñÌìÒ»¸öÀÏÅóÓÑÎÊÎÒÔõô×ö£¬ÎÒã¶ÁËһϣ¬»¹ÔÚÏëÓÐûÓÐÄÚÖú¯Êý£¬ÊµÔÚûÏëÆðÀ´£¬²»ÖªµÀÊÇÕæµÄûÓл¹ÊÇÎÒ²»ÖªµÀ¡£ºÇºÇ~²»¹ÜÁË£¬×îºóÎÒ»¹ÊÇ×Ô¼ºÐ´ÁËÒ»¸öСº¯ÊýÀ´Íê³ÉµÄ£¬²»¹ý²»ÊÇÎ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ