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. Web Development
  3. ASP.NET
  4. setting cookie value from windows froms

setting cookie value from windows froms

Scheduled Pinned Locked Moved ASP.NET
javascriptwinformsquestion
4 Posts 4 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.
  • J Offline
    J Offline
    justintimberlake
    wrote on last edited by
    #1

    how can i set cookie value from windows forms and read those values from javascript

    C N S 3 Replies Last reply
    0
    • J justintimberlake

      how can i set cookie value from windows forms and read those values from javascript

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      You want to set cookies from a windows program ? I would guess the best way would be by putting a web browser control on your form and having the html page with the script to write it in your app ?

      Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      1 Reply Last reply
      0
      • J justintimberlake

        how can i set cookie value from windows forms and read those values from javascript

        N Offline
        N Offline
        Naik A2Ze
        wrote on last edited by
        #3

        hello frd use the scrpit ..........:rose: <!-- function setCookie(name, value) { document.cookie = name+"="+value; } //--> if (_root.cookieName.length>=1 && _root.cookieValue.length>=1) getURL("javascript:setCookie('"+_root.cookieName+"','"+_root.cookieValue+"')");

        Naik M

        1 Reply Last reply
        0
        • J justintimberlake

          how can i set cookie value from windows forms and read those values from javascript

          S Offline
          S Offline
          Sun Rays
          wrote on last edited by
          #4

          Hi, in windows forms u cant use cookies. Cookies are for web pages not for windows forms.

          Thanks, Sun Rays Rate this post if you like answer.

          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