sting format problem-need quick help
-
hi, i was using to conver a string into HttpUtility.UrlEncodeUnicode("string value"), its working fine web application, but when i tried to run in windows forms application , it says httputility does nt exist in current context, i m using this format in crawling. please need quick help. many thanks, adnan
-
hi, i was using to conver a string into HttpUtility.UrlEncodeUnicode("string value"), its working fine web application, but when i tried to run in windows forms application , it says httputility does nt exist in current context, i m using this format in crawling. please need quick help. many thanks, adnan
The .NET classes reside in many namespaces; most namespaces need to be added (add reference) and declared (using ... at the top of your files). Visual Studio will add some references and some using statements, depending on the type of project you create. But you can always add to them, so find out what it is you need, either by reading the documentation on the classes you are interested in, or by looking at another project that uses them and does compile. :)
Luc Pattyn
-
The .NET classes reside in many namespaces; most namespaces need to be added (add reference) and declared (using ... at the top of your files). Visual Studio will add some references and some using statements, depending on the type of project you create. But you can always add to them, so find out what it is you need, either by reading the documentation on the classes you are interested in, or by looking at another project that uses them and does compile. :)
Luc Pattyn
bundle of thanks,:) Adnan
-
bundle of thanks,:) Adnan
Please do remember to use the HttpUtility class, you need IIS running, ie. you need a webserver. your windows application may not have this as prerequisite as happens in most cases. So this is not a good class to use in Windows application.
Pradipta Basu