473,404 Members | 2,114 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Server.HTMLDecode

how can I write a server.htmlDecode function?

thank you
Jul 22 '05 #1
3 23107
Function URLDecode(sDec)
dim objRE
set objRE = new RegExp
sDec = Replace(sDec, "+", " ")
objRE.Pattern = "%([0-9a-fA-F]{2})"
objRE.Global = True
URLDecode = objRE.Replace(sDec, GetRef("URLDecodeHex"))
End Function

'// Replacement function for the above
Function URLDecodeHex(sMatch, lhex_digits, lpos, ssource)
URLDecodeHex = chr("&H" & lhex_digits)
End Function

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"b.Wurm" <Be******@eworx.at> wrote in message news:#Y*************@TK2MSFTNGP12.phx.gbl...
how can I write a server.htmlDecode function?

thank you



Jul 22 '05 #2
"b.Wurm" <Be******@eworx.at> wrote in message
news:#Y*************@TK2MSFTNGP12.phx.gbl...
how can I write a server.htmlDecode function?

thank you


"Steven Burn" didn't credit the source:
http://flangy.com/dev/asp/urldecode.html
Jul 22 '05 #3
My apologies (C&P'd to a local file a while ago, but didn't bookmark the URL I got it from)

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"McKirahan" <Ne**@McKirahan.com> wrote in message news:J6********************@comcast.com...
"b.Wurm" <Be******@eworx.at> wrote in message
news:#Y*************@TK2MSFTNGP12.phx.gbl...
how can I write a server.htmlDecode function?

thank you


"Steven Burn" didn't credit the source:
http://flangy.com/dev/asp/urldecode.html



Jul 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Danny | last post by:
In the classic asp, I can use escape built-in function (server side function) like this: <script language=javascript> var myContent = unescape(<%=escape(strContent)%>) </script> How do I do...
4
by: Sonu Kapoor | last post by:
Hello, does anybody knows the equilant of Server.HtmlDecode when creating a windows service? Thanks, Sonu
3
by: ProJee | last post by:
1. How to pass chr(1) (or another special char below 32) to a method in a webservice? It raises an exception when I try to pass it through webservice.htc 2. How to pass chr(255) It doesn't...
5
by: Jonas Åkermark | last post by:
Hello! I have a problem decoding the czech character: r The HTML code for this character is ř but when running Server.HTMLdecode on that string it just returns ř instead of the real char....
2
by: Sakharam | last post by:
Hi All, I want to use "HtmlEncode" and "HtmlDecode" functionality of "Server" class in Windows service. Since these are not shared functions, I could not used it in non Web Application. Is...
2
by: Mike | last post by:
Hi, I am strugling with a simple problem which I can't seem to resolve. I have an asp.net page which contains a server-control (flytreeview, which is a kind of a tree to be exact). The tree is...
2
by: toddw607 | last post by:
Hi Everyone! I have a ASP.NET webform that brings data in from SQL Server 2000 and displays it on a page. I want to update the webpage while in IE using the following code: <%@ Import...
1
by: Amie | last post by:
Hi, It seems asp.net controls automatically encode the attribute values. For example, I need to have whitespace in OPTION tag. After binding data to the dropdownlist, the source html has the...
8
by: emailmygroup | last post by:
I am trying to decode character ‘#; but it is not working. Anybody knows how to decode this character?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.