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. Post Back events

Post Back events

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

    Hey people, I have a page that has 3 calendars across the bottom of it that are dynamically drawn from data from a database. I also have A picture gallery set up above the calendars. Now when I click on a new picture in order to make it bigger, the page does a postback. At this point i get errors w/ my dynamically drawn labels and such. Sometimes it say invailid attempt to read when reader is closed. Is there a way i can tell the page that on a post back dont reload the calendar information and still have it show up on the bottom of the page? Thanks Tommy

    E 1 Reply Last reply
    0
    • J jamesbronw

      Hey people, I have a page that has 3 calendars across the bottom of it that are dynamically drawn from data from a database. I also have A picture gallery set up above the calendars. Now when I click on a new picture in order to make it bigger, the page does a postback. At this point i get errors w/ my dynamically drawn labels and such. Sometimes it say invailid attempt to read when reader is closed. Is there a way i can tell the page that on a post back dont reload the calendar information and still have it show up on the bottom of the page? Thanks Tommy

      E Offline
      E Offline
      Esmo2000
      wrote on last edited by
      #2

      if(!Page.IsPostBack) { // Do calendar stuff } else { // Dont do it } If you for whatever reason cannot read again then you are going to have to store the data in a date structure of some sort, serialize it, and then save it the session. Then your else would be retrieving that data structure and reloading the calendar. Hope that this helps, Jim

      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