I am not similiar with javascript ... just star to learning it
in my web page have a Dropdownlist (names ddlSHOP) and 100 textboxes
each time ddlSHOP.selectedIndex changed , I will change the text of each texBox
(depend on which shop user selected .. then fill the shop's information to each textbox)
for to avoid user miss the information they just modify ( user will change any of textbox.Text )
I hope I can ask user if they want to save data before I change TextBox.Text each time ddlShop.SelectedIndexChanged..
1 user selecte the shop from ddlSHOP
2 I will retrive data from database then fill data to each TextBox of the shop was seleced by user
3 user change ddlShop's selectedIndex
4 I want to pop-up alert window to ask user if theny want to save the data before change selected shop ?
5 if user click "yes" then save data for them, after saved , retrieve another shop's information then fill to each textboxes for user again
in step 4 and step 5
step 4 : how to pop up window when user change ddlSHOP's selctedindex by javascript?
step5 : I have wirte a method named SaveShop for save data... how to invoke this method by javascript?
private book SaveShop(string shopID)
{
// save data
}
I will be appreciated for any suggestion..
thanks alot