Save data to server without postback?

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

  1. #1

    Default Save data to server without postback?

    I have an intranet application where some pages display large tables of
    editable data. I've designed the page to operate like Microsoft Access
    where the user can move from cell to cell and as they change rows it
    checks to see if edits have been made and automatically saves the
    changes to that row in our SQL database.

    Here's my challenge: Everytime the information is posted back to the
    server, the page is reloaded at the client(normal asp behavior). This
    causes an uncomfortable delay if the table has hundreds of rows because
    it could take a few seconds or more to refresh the page if there are
    hundreds of rows.

    I'm looking for a better approach but I'm not sure where to look.
    Ideally, I should be able to post back only the changes made to that
    single row and not have to refresh the page at the client because
    nothing has changed. I was wondering if some other technology such as
    SOAP or XML or web service might be able to accomadate this and if
    someone could point me to a good resource (book, website, etc.) that
    would give me a jump start.


    TIA, Mike



    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Mike Szanto Guest

  2. Similar Questions and Discussions

    1. Processing Postback Data
      I want to access the values submitted by a custom control I wrote (using VB.NET). My control creates an HTML Table and Input type="hidden" tags. All...
    2. Postback data problem
      I am trying to constuct a custom control in ASP.NET 2.0. I want it to collect the information in the control through postbacks, but I can't seem to...
    3. Postback data
      Hi friends, I Have a datagrid. It's for list for categories. I want this list is hyperlink and for postback send Categoriesid. User click this...
    4. Save data on server with asp script
      Hi all ! I did al lot of reading over the last few days and so far I'm still not as fasr as I want to :) I have my director script for my submit...
    5. save control state and display it after postback
      Hi, i built a control which contains two listbox controls and two buttons which uses to transfer elements from one listbox to the other and back....
  3. #2

    Default Re: Save data to server without postback?

    Mike,
    If you are using IE 5.0 (or greater), then you can use IE's WebService Behavior
    The WebService Behavior enables client-side script to invoke remote methods
    exposed by Web Services, without having to do a postback.

    For more information, please see the following MS help file
    [url]http://msdn.microsoft.com/workshop/author/webservice/webservice_node_entry.asp[/url]

    --

    Thanks,
    Carl Prothman
    Microsoft ASP.NET MVP
    [url]http://www.able-consulting.com[/url]


    "Mike Szanto" <mszanto@hotmail.com> wrote in message news:#UMuUM5UDHA.2344@TK2MSFTNGP09.phx.gbl...
    > I have an intranet application where some pages display large tables of
    > editable data. I've designed the page to operate like Microsoft Access
    > where the user can move from cell to cell and as they change rows it
    > checks to see if edits have been made and automatically saves the
    > changes to that row in our SQL database.
    >
    > Here's my challenge: Everytime the information is posted back to the
    > server, the page is reloaded at the client(normal asp behavior). This
    > causes an uncomfortable delay if the table has hundreds of rows because
    > it could take a few seconds or more to refresh the page if there are
    > hundreds of rows.
    >
    > I'm looking for a better approach but I'm not sure where to look.
    > Ideally, I should be able to post back only the changes made to that
    > single row and not have to refresh the page at the client because
    > nothing has changed. I was wondering if some other technology such as
    > SOAP or XML or web service might be able to accomadate this and if
    > someone could point me to a good resource (book, website, etc.) that
    > would give me a jump start.

    Carl Prothman [MVP] Guest

  4. #3

    Default Re: Save data to server without postback?

    Carl,

    That's exactly what I'm looking for.

    I had an inkling that webservices would do it but didn't know what to
    look for. "Web Services Behavior" looks like it will be the answer.

    This looks to be so much more efficient than than the traditional
    post/get methodology, I'm surprized there's not much discussion on it in
    these newsgroups.

    Are you using this and if so, what is you opinion on this methodology
    vs. Post/Get.

    Thanks again,


    Mike

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Mike Szanto Guest

  5. #4

    Default Re: Save data to server without postback?

    "Mike Szanto" <mszanto@hotmail.com> wrote
    > That's exactly what I'm looking for.
    >
    Cool! ;-)
    > I had an inkling that webservices would do it but didn't know what to
    > look for. "Web Services Behavior" looks like it will be the answer.
    >
    > This looks to be so much more efficient than than the traditional
    > post/get methodology, I'm surprized there's not much discussion on it in
    > these newsgroups.
    >
    It may be due to that fact that this solution only works with IE 5.x and greater...
    > Are you using this and if so, what is you opinion on this methodology
    > vs. Post/Get.
    >
    I prefer the IE Web Service behavior since the screen doesn't flicker
    when getting data, unlike a post back. Athough it's a bit more work
    since you are working with client-side code, which IMHO, Visual
    Studio .NET's ASP.NET designer is really not geared up for...

    --

    Thanks,
    Carl Prothman
    Microsoft ASP.NET MVP
    [url]http://www.able-consulting.com[/url]




    Carl Prothman [MVP] Guest

  6. #5

    Default Re: Save data to server without postback?

    actually netscape 7 has web service support builtin (no need for a bunch of
    javascript) and flash also supports web services.

    -- bruce (sqlwork.com)


    "Carl Prothman [MVP]" <carlpr@spamcop.net> wrote in message
    news:#ZH1tKSVDHA.1748@TK2MSFTNGP12.phx.gbl...
    > "Mike Szanto" <mszanto@hotmail.com> wrote
    > > That's exactly what I'm looking for.
    > >
    >
    > Cool! ;-)
    >
    > > I had an inkling that webservices would do it but didn't know what to
    > > look for. "Web Services Behavior" looks like it will be the answer.
    > >
    > > This looks to be so much more efficient than than the traditional
    > > post/get methodology, I'm surprized there's not much discussion on it in
    > > these newsgroups.
    > >
    >
    > It may be due to that fact that this solution only works with IE 5.x and
    greater...
    >
    > > Are you using this and if so, what is you opinion on this methodology
    > > vs. Post/Get.
    > >
    >
    > I prefer the IE Web Service behavior since the screen doesn't flicker
    > when getting data, unlike a post back. Athough it's a bit more work
    > since you are working with client-side code, which IMHO, Visual
    > Studio .NET's ASP.NET designer is really not geared up for...
    >
    > --
    >
    > Thanks,
    > Carl Prothman
    > Microsoft ASP.NET MVP
    > [url]http://www.able-consulting.com[/url]
    >
    >
    >
    >

    bruce barker 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