Check for form changes

Discussion in 'ASP .Net' started by JIK, Feb 6, 2004.

  1. JIK

    JIK Guest

    Hi.

    I have a web app written in ASP.NET/C# with a lot of textboxes, dropdowns
    etc.
    Is there any possibilities to check for changes in texboxes etc in a web
    form on the client side easily?
    And on the server side?


    Jon
     
    JIK, Feb 6, 2004
    #1
    1. Advertising

  2. JIK

    Corey O'Mara Guest

    Client side is good old JavaScript... there's nothing about ASP.NET that
    will help you there.

    Server side, however, ASP.NET can help! You could take advantage of the
    "Change" events for your ASP.NET controls... if the event (or events) fire,
    then you know the values have been changed. You can even tie multiple events
    (the change event for each control) to a single event handler to centralize
    the processing of the events.

    Corey O'Mara
    MCSD.NET, MCT


    "JIK" <> wrote in message
    news:...
    >
    > Hi.
    >
    > I have a web app written in ASP.NET/C# with a lot of textboxes, dropdowns
    > etc.
    > Is there any possibilities to check for changes in texboxes etc in a web
    > form on the client side easily?
    > And on the server side?
    >
    >
    > Jon
    >
    >
     
    Corey O'Mara, Feb 7, 2004
    #2
    1. Advertising

  3. Thanks - but...

    I know I have to use Java on the client side - is it any easy way to
    check if the user have done any changes?

    On the server side - by using the Change event - will it then do a
    roundtrip from client to server for every change the user makes?



    Jon


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
     
    Jon Kleveland, Feb 7, 2004
    #3
  4. JIK

    Corey O'Mara Guest

    There's no "easy" way that I know of to write that Javascript (has it ever
    been easy?).

    As for the server side, the page won't make a roundtrip for every change the
    user makes unless you have a control's "AutoPostBack" property set to true.
    If not, the server side events will fire when the page does a round trip
    based on the user pressing a button, etc.

    --
    Corey O'Mara
    MCSD.NET, MCT

    "Jon Kleveland" <> wrote in message
    news:...
    >
    > Thanks - but...
    >
    > I know I have to use Java on the client side - is it any easy way to
    > check if the user have done any changes?
    >
    > On the server side - by using the Change event - will it then do a
    > roundtrip from client to server for every change the user makes?
    >
    >
    >
    > Jon
    >
    >
    > *** Sent via Developersdex http://www.developersdex.com ***
    > Don't just participate in USENET...get rewarded for it!
     
    Corey O'Mara, Feb 7, 2004
    #4
  5. JIK

    JIK Guest

    Thanx,

    Do you, or anyone, have som samples of java-code to use?
    I want to have code that checks for changes and waarn the user if he try to
    navigate away from the page without saving...


    Jon



    "Corey O'Mara" <> skrev i melding
    news:%23p%...
    > There's no "easy" way that I know of to write that Javascript (has it ever
    > been easy?).
    >
    > As for the server side, the page won't make a roundtrip for every change

    the
    > user makes unless you have a control's "AutoPostBack" property set to

    true.
    > If not, the server side events will fire when the page does a round trip
    > based on the user pressing a button, etc.
    >
    > --
    > Corey O'Mara
    > MCSD.NET, MCT
    >
    > "Jon Kleveland" <> wrote in message
    > news:...
    > >
    > > Thanks - but...
    > >
    > > I know I have to use Java on the client side - is it any easy way to
    > > check if the user have done any changes?
    > >
    > > On the server side - by using the Change event - will it then do a
    > > roundtrip from client to server for every change the user makes?
    > >
    > >
    > >
    > > Jon
    > >
    > >
    > > *** Sent via Developersdex http://www.developersdex.com ***
    > > Don't just participate in USENET...get rewarded for it!

    >
    >
     
    JIK, Feb 7, 2004
    #5
    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. Steve C. Orr, MCSD

    Re: Update webform with changes in a popup form

    Steve C. Orr, MCSD, Aug 8, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    765
    Steve C. Orr, MCSD
    Aug 8, 2003
  2. Casper Skovgaard

    How do I check for changes in a user form?

    Casper Skovgaard, May 6, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    503
    Rick Spiewak
    May 6, 2004
  3. Joseph Farmer
    Replies:
    5
    Views:
    898
    Scott Allen
    Jun 2, 2005
  4. Assimalyst

    Check form before unload for changes

    Assimalyst, Aug 10, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    5,420
    Assimalyst
    Aug 11, 2005
  5. libsfan01
    Replies:
    4
    Views:
    169
    Laurent Bugnion
    Dec 18, 2006
Loading...

Share This Page