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. How to preserve Master page data whenever conten page is loaded?

How to preserve Master page data whenever conten page is loaded?

Scheduled Pinned Locked Moved C#
databasetutorialquestion
2 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.
  • N Offline
    N Offline
    NetRams
    wrote on last edited by
    #1

    Hi, I am having one content page, Menu on Masterpage and details on content page. Menu strings will be taken from database. Now what happens whenever I click any menu, automatically my master page get loaded and the menu string also taken from database. I don't want it to be taken up always from database, I need some way to preserve it in master page itself. Any Luck.

    Be simple and Be sample.

    H 1 Reply Last reply
    0
    • N NetRams

      Hi, I am having one content page, Menu on Masterpage and details on content page. Menu strings will be taken from database. Now what happens whenever I click any menu, automatically my master page get loaded and the menu string also taken from database. I don't want it to be taken up always from database, I need some way to preserve it in master page itself. Any Luck.

      Be simple and Be sample.

      H Offline
      H Offline
      harleydk
      wrote on last edited by
      #2

      You should look into caching the data from the database. Take a look a the caching page directive. If you're referring to the page refresh, you could look into ajax to avoid unnecessary page refreshing.

      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