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. How to save the last changes you have made with your page

How to save the last changes you have made with your page

Scheduled Pinned Locked Moved ASP.NET
questionhtmltutorial
3 Posts 2 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.
  • M Offline
    M Offline
    monafr81
    wrote on last edited by
    #1

    i have a question ??????? i have 4 html button in my home page with one default active one when i choose any other button it become the active one and display a certain photo but when i make refresh to the page it reloads with the default button as the active one ignoring the last choise which i have made i want the page to be reloaded with the last choise button not the default button how can i do that ???????? i hope that my question is clear Thanks ,

    LA ELAH ELA ALLAH MOHAMED RASOL ALLAH

    C 1 Reply Last reply
    0
    • M monafr81

      i have a question ??????? i have 4 html button in my home page with one default active one when i choose any other button it become the active one and display a certain photo but when i make refresh to the page it reloads with the default button as the active one ignoring the last choise which i have made i want the page to be reloaded with the last choise button not the default button how can i do that ???????? i hope that my question is clear Thanks ,

      LA ELAH ELA ALLAH MOHAMED RASOL ALLAH

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

      You have to store the selection somewhere, like a cookie, or your database. Then you have to read the value and change your page to reflect the choice.

      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 )

      M 1 Reply Last reply
      0
      • C Christian Graus

        You have to store the selection somewhere, like a cookie, or your database. Then you have to read the value and change your page to reflect the choice.

        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 )

        M Offline
        M Offline
        monafr81
        wrote on last edited by
        #3

        ok the choise happend on client side the server has no idea about it so i need by using java script to creat a cooki and save the user choise in it and send it to the server how can i create cooki by using java script

        LA ELAH ELA ALLAH MOHAMED RASOL ALLAH

        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