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.
AlexCheck out OnBlur and then OnUnload ( client-side ).
Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaol
Ven, y hablemos de ASP.NET...
======================
"Alex Nitulescu" <REMOVETHIScuca_macaii2000@.yahoo.com> wrote in message
news:eXuHURfTFHA.3840@.tk2msftngp13.phx.gbl...
> Hi. I have kind of a 'file manager' on my website. It also allows for chan
ging 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 p
osting 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 "Y
ou 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
>
Thursday, March 22, 2012
Text_Changed ??
Labels:
administrative,
allows,
asp,
file,
files,
forchanging,
manager,
net,
purposes,
text,
text_changed,
website
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment