Visual Basic Development Bookmark and Share   
 Home > Visual Basic Language > in ASP.net 2.0 = Server.URLEncode, but in VB.NET 2005??
 

in ASP.net 2.0 = Server.URLEncode, but in VB.NET 2005??

Hello,

I am writing a class which i want to be language independant (ie, asp.net 2.0 or vb.net 2005) but i need to do an urlencode inside, i know in asp.net 2.0 have Server.URLEncode to convert input into URL encoding, but how can i do that in VB.net??? that the place i am creating my class. I have no access to Server.URLEncode() in VB.net... help???

Thanks,

Alan,

pc0416  Friday, May 12, 2006 6:15 AM

ASP.NET is a class library, NOT a language. That method exists because it's a class inside the framework, visible to the classthat you'd be calling it in. To gain access, you need to import the system.web.dll.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebhttpserverutilityclasstopic.asp

cgraus  Friday, May 12, 2006 6:42 AM

ASP.NET is a class library, NOT a language. That method exists because it's a class inside the framework, visible to the classthat you'd be calling it in. To gain access, you need to import the system.web.dll.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebhttpserverutilityclasstopic.asp

cgraus  Friday, May 12, 2006 6:42 AM

You can use google to search for other answers

Custom Search

More Threads

• How write code in vbscript?
• KeyUp event and Datagridview
• Reverse Engineering
• How do I encrypt a folder from within VB?
• How to get an Excel app instance from the Process list
• VB.NET text box validation
• No footers to stand on
• Reading From a txt file
• File or Folder Detection
• Conversion operator overload for an Enum to another Enum type