Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. sting format problem-need quick help

sting format problem-need quick help

Scheduled Pinned Locked Moved C#
helpwinforms
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    adnanrafiq
    wrote on last edited by
    #1

    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

    L 1 Reply Last reply
    0
    • A adnanrafiq

      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

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      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

      A 1 Reply Last reply
      0
      • L 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

        A Offline
        A Offline
        adnanrafiq
        wrote on last edited by
        #3

        bundle of thanks,:) Adnan

        P 1 Reply Last reply
        0
        • A adnanrafiq

          bundle of thanks,:) Adnan

          P Offline
          P Offline
          Pradipta Basu
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups