Text_Changed ?

Discussion in 'ASP .Net Web Controls' started by Alex Nitulescu, May 1, 2005.

  1. 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
    Alex Nitulescu, May 1, 2005
    #1
    1. Advertising

  2. Alex Nitulescu

    Brock Allen Guest

    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



    > 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
    Brock Allen, May 1, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?WWFuaXI=?=

    Fire text_changed when popup cause the change

    =?Utf-8?B?WWFuaXI=?=, Apr 2, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    307
    =?Utf-8?B?WWFuaXI=?=
    Apr 2, 2004
  2. Alex Nitulescu

    Text_Changed ???

    Alex Nitulescu, May 1, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    469
    Juan T. Llibre
    May 1, 2005
  3. Replies:
    1
    Views:
    361
    bruce barker
    May 17, 2007
  4. Raghu Raman
    Replies:
    1
    Views:
    88
    Hal Rosser
    Nov 1, 2004
Loading...

Share This Page