A
Andy
I have been struggling with this for a while, and have seen lots of
related postings, but nothing (as far as I can see) that answers this
directly.
Im using vb dotnet and have an aspx that has a drop down list. For the
selected item in the listbox a number of textboxes are populated from
the database. The user can change the data in one or more of these
text boxes, after which they should press the button that saves he
data if they want to commit those changes.
What I want to achieve is that when the user selects a different item
in the drop down, the syetm should prompt with a confirmation to ask
whether the user wishes to save the changes. If the user selects yes,
then the save is run (in the code behind) before moving to the newly
selected item in the drop down. If the user selects no then the newly
selected item is displayed with no save.
I have the code behind that does the save, populates the screen etc. I
can get a javascript confirm working, but I cant bring it all together
to achieve exactly what I am describing above.
Any help would be very gratefully received.
related postings, but nothing (as far as I can see) that answers this
directly.
Im using vb dotnet and have an aspx that has a drop down list. For the
selected item in the listbox a number of textboxes are populated from
the database. The user can change the data in one or more of these
text boxes, after which they should press the button that saves he
data if they want to commit those changes.
What I want to achieve is that when the user selects a different item
in the drop down, the syetm should prompt with a confirmation to ask
whether the user wishes to save the changes. If the user selects yes,
then the save is run (in the code behind) before moving to the newly
selected item in the drop down. If the user selects no then the newly
selected item is displayed with no save.
I have the code behind that does the save, populates the screen etc. I
can get a javascript confirm working, but I cant bring it all together
to achieve exactly what I am describing above.
Any help would be very gratefully received.