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. Postback

Postback

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelpquestion
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.
  • X Offline
    X Offline
    XeoN Kc
    wrote on last edited by
    #1

    I'm kinda new to asp.net My schenario is the following: I want to add an item to my listbox, and it is doing this. but on refresh..it is re-adding the item. I inserted an if checking whether ispostback is true...so that it wouldn't do that, but instead, it did nothing not even inserting on the first time. Can anybody help out pls? Thanks

    D 1 Reply Last reply
    0
    • X XeoN Kc

      I'm kinda new to asp.net My schenario is the following: I want to add an item to my listbox, and it is doing this. but on refresh..it is re-adding the item. I inserted an if checking whether ispostback is true...so that it wouldn't do that, but instead, it did nothing not even inserting on the first time. Can anybody help out pls? Thanks

      D Offline
      D Offline
      Daniel Santillanes
      wrote on last edited by
      #2

      Simply ask the opposite... if ispostback = false then 'Initialize page only first time user enters end if what you're currently doing is run the code on postbacks only (if ispostback = true then ...) daniero

      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