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