473,379 Members | 1,530 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,379 software developers and data experts.

HttpServerUtility.UrlEncode bound to ASP.NET?

Greetings,
I've read through some other posts and looked at this class through
reflector. All of its contructors are internal, so it cannot be
instantiated outside of ASP.NET. This seems unfortunate to me. I'd like
to be able to UrlEncode some text completely independent of a web
server. Is the only solution to write my own class that does the same
thing?

Thanks

Sep 11 '05 #1
1 1817
Well,
As seems to be the "Law of Usenet", I found out by just looking a
little deeper that the method just reuses the public static
HttpUlity.UrlEncode method, so that solves the problem!

uv2003 wrote:
Greetings,
I've read through some other posts and looked at this class through
reflector. All of its contructors are internal, so it cannot be
instantiated outside of ASP.NET. This seems unfortunate to me. I'd like
to be able to UrlEncode some text completely independent of a web
server. Is the only solution to write my own class that does the same
thing?

Thanks


Sep 11 '05 #2

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

Similar topics

1
by: yawnmoth | last post by:
Any ideas as to why urlencode(addslashes(chr(0))) returns '%5C0'? It seems like it should return '%00' since that's what urlencode(chr(0)) returns. If not that, I could also see it returning...
1
by: Jim | last post by:
Hello, I'm trying to do urllib.urlencode() with unicode correctly, and I wonder if some kind person could set me straight? My understanding is that I am supposed to be able to urlencode...
1
by: Brendan Erwin | last post by:
Looking for some clarification here. I'm considering using HttpServerUtility.GetLastError in a standard errorhandler for all my pages. (Inherits System.Web.UI.Page and overrides OnError.) My...
4
by: Andreas Klemt | last post by:
Hello, is there a difference between System.Web.HttpUtility.UrlEncode and Server.UrlEncode ?
1
by: Dario Sala | last post by:
Hi, what's the difference about Asp Server.UrlEncode and the Asp.Net Server.UrlEncode ? In asp: Server.UrlEncode("*") = %2A In Asp.Net: Server.UrlEncode("*") = *
1
by: uv2003 | last post by:
Greetings, I've read through some other posts and looked at this class through reflector. All of its contructors are internal, so it cannot be instantiated outside of ASP.NET. This seems...
2
by: Alexander | last post by:
I wanna to transfer from one HttpHandler (HttpModule) to another one. When I doing HttpContext.Current.Server.Transfer("~/OtherHandler.ashx") from my handler I see: ...
2
by: Patrick F | last post by:
I have a dll file that i am trying to use the Server.Encode function. so i have added a reference to System.Web; but when im trying to delcare: HttpServerUtility mServer = new...
12
by: sleytr | last post by:
Hi, I'm trying to make a gui for a web service. Site using ± character in value of some fields. But I can't encode this character properly. >>> data = {'key':'±'} >>> urllib.urlencode(data)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.