Alternative to AutoPostback for saving data

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Re: Alternative to AutoPostback for saving data

    "p" <abefuzzleduser2@yahoo.com> wrote in message
    news:ecvd9KPXDHA.2344@TK2MSFTNGP09.phx.gbl...
    > We have an ASP.net app that is copies an existing database program
    > functionality, that does not require users to click a Save button after
    they
    > make changes. To get this user functionality the same in ASP.net, I have
    > used autopostbacks for all controls (other than datagrids) to save user
    data
    > to database when they type in a text field and leave, or click a
    > dropdownlist or checkbox. The users normally first search for an item and
    > update a few fields then stop using it for a few minutes.
    >
    > Is there any other way to do this than autopostbacks for each control?
    Since the database is on the server, not on the client system, the data will
    need to travel from the client to the server whenever they leave a field.
    This could be done with a web service.

    You might be better off explaining to the users the difference between web
    applications and "fat client" applications. They should not expect that
    level of interactivity.
    --
    John Saunders
    Internet Engineer
    [email]john.saunders@surfcontrol.com[/email]


    John Saunders Guest

  2. Similar Questions and Discussions

    1. Need alternative to list component for XML data
      I need help; please point me in the right direction. I need to display a large XML file in a very specific visual format. The smallest object has...
    2. saving data from a w3d game
      hey fellow lingo-ists, I would like to save the data from a first-person shooter game, i.e. player location, speed, etc. while I play the game. ...
    3. saving data from .FSO
      Hi all, I am also looking for similar thing, a simple FSO file reader, something like the SharedObject Reader (SOL) written by Alessandro at...
    4. saving data in XML
      hi, i?m using a model to load a xml file and I?m using a data grid do show this model data. I created a for to insert new rows in the data...
    5. Saving data between sessions
      Is it possible to save session values between pages? I did a little script to let the users login. I use this script to check username and password...
  3. #2

    Default Re: Alternative to AutoPostback for saving data

    I agree that they can't expect the same functionality.

    Do you mean setup the web service to provide data instead running database
    server side?

    Thanks
    P
    "John Saunders" <john.saunders@surfcontrol.com> wrote in message
    news:%23037WRPXDHA.2484@TK2MSFTNGP09.phx.gbl...
    > "p" <abefuzzleduser2@yahoo.com> wrote in message
    > news:ecvd9KPXDHA.2344@TK2MSFTNGP09.phx.gbl...
    > > We have an ASP.net app that is copies an existing database program
    > > functionality, that does not require users to click a Save button after
    > they
    > > make changes. To get this user functionality the same in ASP.net, I
    have
    > > used autopostbacks for all controls (other than datagrids) to save user
    > data
    > > to database when they type in a text field and leave, or click a
    > > dropdownlist or checkbox. The users normally first search for an item
    and
    > > update a few fields then stop using it for a few minutes.
    > >
    > > Is there any other way to do this than autopostbacks for each control?
    >
    > Since the database is on the server, not on the client system, the data
    will
    > need to travel from the client to the server whenever they leave a field.
    > This could be done with a web service.
    >
    > You might be better off explaining to the users the difference between web
    > applications and "fat client" applications. They should not expect that
    > level of interactivity.
    > --
    > John Saunders
    > Internet Engineer
    > [email]john.saunders@surfcontrol.com[/email]
    >
    >

    p Guest

  4. #3

    Default Re: Alternative to AutoPostback for saving data

    "p" <abefuzzleduser2@yahoo.com> wrote in message
    news:%23fjNWdPXDHA.2312@TK2MSFTNGP10.phx.gbl...
    > I agree that they can't expect the same functionality.
    >
    > Do you mean setup the web service to provide data instead running database
    > server side?
    No, I mean set up a web service to send updates back to the database. This
    may be less efficient than the postbacks, but at least you wouldn't have the
    screen flicker.
    --
    John Saunders
    Internet Engineer
    [email]john.saunders@surfcontrol.com[/email]


    John Saunders Guest

  5. #4

    Default Re: Alternative to AutoPostback for saving data

    John,

    Do you mean write a browser client side web services consumer? Did not know
    that was possible.

    I hate the postback waiting also. I just assumed that even using a web
    service, you would still have to do interaction in server code anyway in
    next postback event? So to get around postback do you mean client code?

    Any sample code?

    Thanks
    P
    "John Saunders" <john.saunders@surfcontrol.com> wrote in message
    news:%23jddGgPXDHA.1384@TK2MSFTNGP10.phx.gbl...
    > "p" <abefuzzleduser2@yahoo.com> wrote in message
    > news:%23fjNWdPXDHA.2312@TK2MSFTNGP10.phx.gbl...
    > > I agree that they can't expect the same functionality.
    > >
    > > Do you mean setup the web service to provide data instead running
    database
    > > server side?
    >
    > No, I mean set up a web service to send updates back to the database. This
    > may be less efficient than the postbacks, but at least you wouldn't have
    the
    > screen flicker.
    > --
    > John Saunders
    > Internet Engineer
    > [email]john.saunders@surfcontrol.com[/email]
    >
    >

    p Guest

  6. #5

    Default Re: Alternative to AutoPostback for saving data

    It's not so much a part of the architecture of ASP.NET, as it is a feature
    of the architecture of the WWW. In fact, you'd have similar issues
    regardless of what kind of client-server application you're building.

    The client isn't the server, and vice versa.

    --
    John Saunders
    Internet Engineer
    [email]john.saunders@surfcontrol.com[/email]


    "p" <abefuzzleduser2@yahoo.com> wrote in message
    news:%23rrFg7QXDHA.2384@TK2MSFTNGP10.phx.gbl...
    > John,
    >
    > I guess there is no real solution since it is a feauture of the
    architecture
    > of asp.net.
    >
    > I do update everything again after the database update so I should be oK.
    > but I still have to test everything with concurrent users.
    >
    > Thanks
    > P
    > "John Saunders" <john.saunders@surfcontrol.com> wrote in message
    > news:ud1KssQXDHA.2360@TK2MSFTNGP12.phx.gbl...
    > > "p" <abefuzzleduser2@yahoo.com> wrote in message
    > > news:O0XZmSQXDHA.2200@TK2MSFTNGP09.phx.gbl...
    > > > John,
    > > >
    > > > Do you mean write a browser client side web services consumer? Did not
    > > know
    > > > that was possible.
    > > >
    > > > I hate the postback waiting also. I just assumed that even using a web
    > > > service, you would still have to do interaction in server code anyway
    in
    > > > next postback event? So to get around postback do you mean client
    code?
    > > >
    > > > Any sample code?
    > >
    > > Unfortunately, I haven't used this yet, so I don't have a sample handy.
    > >
    > > If you can limit your users to IE 5.5 or above, you can use the "web
    > service
    > > behavior" to access a web service in client script. Otherwise, you'll be
    > > stuck with a Java Applet or something.
    > >
    > > I'm afraid that the real solution is: don't do that!
    > >
    > > BTW, do you refresh the entire grid whenever the user enters a new value
    > in
    > > a field? If not, and if there are simultaneous users, there could be
    > > concurrency issues.
    > > --
    > > John Saunders
    > > Internet Engineer
    > > [email]john.saunders@surfcontrol.com[/email]
    > >
    > >
    > >
    >
    >

    John Saunders Guest

  7. #6

    Default Re: Alternative to AutoPostback for saving data

    I did think of the timer which would be good since their data would get
    updated more. But if the users entered something and switched forms it would
    not get saved. They have a couple forms they use to enter data.

    Thanks
    P
    "MS News (MS LVP)" <sql_agentman@hotmail.com> wrote in message
    news:%23H2g3RQXDHA.2516@TK2MSFTNGP09.phx.gbl...
    > Can you put a JavaScript Timer or a MetaTag that will postback every few
    > minutes?
    > Does a Meta tag Refresh or PostBack???
    >
    > just a thought.
    >
    > "p" <abefuzzleduser2@yahoo.com> wrote in message
    > news:ecvd9KPXDHA.2344@TK2MSFTNGP09.phx.gbl...
    > > We have an ASP.net app that is copies an existing database program
    > > functionality, that does not require users to click a Save button after
    > they
    > > make changes. To get this user functionality the same in ASP.net, I
    have
    > > used autopostbacks for all controls (other than datagrids) to save user
    > data
    > > to database when they type in a text field and leave, or click a
    > > dropdownlist or checkbox. The users normally first search for an item
    and
    > > update a few fields then stop using it for a few minutes.
    > >
    > > Is there any other way to do this than autopostbacks for each control?
    > >
    > > Thanks
    > > P
    > >
    > >
    >
    >

    p Guest

  8. #7

    Default Re: Alternative to AutoPostback for saving data

    The user can enter data then spill coffee on their keyboard or kick their
    computer
    How do we prevent that?


    "p" <abefuzzleduser2@yahoo.com> wrote in message
    news:uuBSgEeXDHA.2620@TK2MSFTNGP09.phx.gbl...
    > I did think of the timer which would be good since their data would get
    > updated more. But if the users entered something and switched forms it
    would
    > not get saved. They have a couple forms they use to enter data.
    >
    > Thanks
    > P
    > "MS News (MS LVP)" <sql_agentman@hotmail.com> wrote in message
    > news:%23H2g3RQXDHA.2516@TK2MSFTNGP09.phx.gbl...
    > > Can you put a JavaScript Timer or a MetaTag that will postback every few
    > > minutes?
    > > Does a Meta tag Refresh or PostBack???
    > >
    > > just a thought.
    > >
    > > "p" <abefuzzleduser2@yahoo.com> wrote in message
    > > news:ecvd9KPXDHA.2344@TK2MSFTNGP09.phx.gbl...
    > > > We have an ASP.net app that is copies an existing database program
    > > > functionality, that does not require users to click a Save button
    after
    > > they
    > > > make changes. To get this user functionality the same in ASP.net, I
    > have
    > > > used autopostbacks for all controls (other than datagrids) to save
    user
    > > data
    > > > to database when they type in a text field and leave, or click a
    > > > dropdownlist or checkbox. The users normally first search for an item
    > and
    > > > update a few fields then stop using it for a few minutes.
    > > >
    > > > Is there any other way to do this than autopostbacks for each control?
    > > >
    > > > Thanks
    > > > P
    > > >
    > > >
    > >
    > >
    >
    >

    MS News \(MS ILM\) Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139