|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Text_Changed ?Hi. I have kind of a 'file manager' on my website. It also allows for
changing some text files (for administrative purposes). My question is this - is it possible to detect the changes in a text box and react accordingly ? Text_changed works only on posting back to the server. I would like to a) enable the Save button only if a change has been made and b) on change, if the user tries to navigate away from that page, to ask "You have made changes to file.... Would you like to save them ? (Y/N)". In windows forms it's trivial, but in ASP how could one do this ? Thank you. Alex You can set the AutoPostBack property to true and this will cause a postback
when the text has changed without the user being required to submit the form (manually). -Brock DevelopMentor http://staff.develop.com/ballen Show quoteHide quote > Hi. I have kind of a 'file manager' on my website. It also allows for > changing some text files (for administrative purposes). My question is > this - is it possible to detect the changes in a text box and react > accordingly ? Text_changed works only on posting back to the server. I > would like to a) enable the Save button only if a change has been made > and b) on change, if the user tries to navigate away from that page, > to ask "You have made changes to file.... Would you like to save them > ? (Y/N)". In windows forms it's trivial, but in ASP how could one do > this ? > > Thank you. > Alex
HELP! TabStrip with Multipage is not working!
How do you display and process confirmation dialog? Arrow keys and the datagrid... How to use Microsoft Rich TextBox control 6? Converting XMLDocument To String Rollover from Image Ready Confirm Delete in DataGrid How to render script code at the end of Page? Short-cut to New chromeless aspx page ? LoadPostData problem for DataGrid |
|||||||||||||||||||||||