473,473 Members | 1,864 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #1
4 5636
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
http://msdn.microsoft.com/workshop/a...node_entry.asp

--

Thanks,
Carl Prothman
Microsoft ASP.NET MVP
http://www.able-consulting.com
"Mike Szanto" <ms*****@hotmail.com> wrote in message news:#U**************@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.

Nov 17 '05 #2
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 http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #3
"Mike Szanto" <ms*****@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
http://www.able-consulting.com


Nov 17 '05 #4
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]" <ca****@spamcop.net> wrote in message
news:#Z**************@TK2MSFTNGP12.phx.gbl...
"Mike Szanto" <ms*****@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
http://www.able-consulting.com

Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Daniel Walzenbach | last post by:
Hi, I have a Website which allows users to input data. After they finished entering data they can click a button to save their input. Problem now is, that I have no possibility to visualize that...
2
by: crjunk | last post by:
I'm trying to write a piece of code that will programatically save a record automatically without me having to add a new ' Row.Item("ADD1") = txtAdd1.Text.Trim.ToUpper ' type command each time I...
1
by: panche | last post by:
I'm developing a fairly simple user control that has two textboxes for date/time entry (a from date/time and a to date/time). One of my requirements is that there should be no button that sets...
5
by: C Watson | last post by:
Hi, I'm wondering if anyone can help me with AJAX in ASP.NET 1.1. I have a very specific feature that I would like to use it for. I have a rather long form that the users use to enter data...
1
by: satish.vell | last post by:
Hi, I have a ASP.NET page inside which I toggle the display of a field using javascript. How can I save this display value between postbacks. Here is my code: <pre>
3
by: kingflux | last post by:
Hello, and thank you in advance for any help you can provide. Each line in our datagrid control contains a product number, description, and a textbox for the user to enter a quantity-to-order. ...
0
by: 1388-2/HB | last post by:
I have a page with a significant number of dynamically created radio buttons, checkboxes and textboxes. When a user is presented with this form and subsequently fills a bunch of stuff out, when...
2
by: toddw607 | last post by:
Hi all! I am attempting to bring an SQL Server table into ASP.NET using the datagrid . I have set all cells to be a text box by which the user can just click on and edit the cell. I have a...
6
by: john | last post by:
I have the following textbox setup with Text & ToolTip Bindings as follows; I'm using Visual Studio 2008 VB: <asp:TextBox ID="txtDay1" runat="server" Text='<%# Eval("Day1") %>'...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.