I am populating a DropDownList via a Dataset. When the user selects an Item in the DDL he is given the option of deleting this record from the Database.
The problem I am experiencing is that when the user clicks the DELETE button it calls a Sub which deletes the record as the page reloads.
When the page reloads the deleted item is still in the list until the page is properly reloaded i.e. not a postback.
Is this a problem with the Dataset needing refreshing or is the page reloading somehow before the item is deleted i.e. the Sub called from the DELETE button is happening after the page loads the DDL's and if this is the case then why does the data keep reloading into the DDL on every PostBack? Although ASP.Nets ability to Keep State is really good for some htings it also brings with it a whole bunch of other problems. It's like having a cache from hell
You can probably guess by my questions that I'm newish to ASP.Net so any help would be appreciated.
Thanks in advance,
Chris
The problem I am experiencing is that when the user clicks the DELETE button it calls a Sub which deletes the record as the page reloads.
When the page reloads the deleted item is still in the list until the page is properly reloaded i.e. not a postback.
Is this a problem with the Dataset needing refreshing or is the page reloading somehow before the item is deleted i.e. the Sub called from the DELETE button is happening after the page loads the DDL's and if this is the case then why does the data keep reloading into the DDL on every PostBack? Although ASP.Nets ability to Keep State is really good for some htings it also brings with it a whole bunch of other problems. It's like having a cache from hell
You can probably guess by my questions that I'm newish to ASP.Net so any help would be appreciated.
Thanks in advance,
Chris