473,804 Members | 2,296 Online
Bytes | Software Development & Data Engineering Community
+ 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 5648
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*****@hotmai l.com> wrote in message news:#U******** ******@TK2MSFTN GP09.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*****@hotmai l.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******** ******@TK2MSFTN GP12.phx.gbl...
"Mike Szanto" <ms*****@hotmai l.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
1865
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 the page is being saved and when it is (hopefully) done saving. I thought about a modal window being opened using JavaScript when they click the save button telling them that the data is being saved. After saving is completed I could use...
2
2883
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 add a new textbox. I've named all my textboxes in the following format txtAdd1 and I've named all my field in the SQL table the same way minus the txt at the beginning. This code scans the form for textboxes. If it finds a text box that is not...
1
2908
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 these values (i.e., no button to cause a postback). The problem I'm having is that I need a number of validations to be performed on the data entry, but I don't know how to do this without having the user control/page posted back to the server. ...
5
2666
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 during a phone call with a client. Since it's long, I put six Save buttons down the length of the form and asked the users to save often. When they click the Save buttons, the data is saved to a central database and a text label is changed to say...
1
3219
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
1716
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. Users enter quantities (not necessarily on every line), click the Next button, and continue. Sometimes users return to a previous page, by clicking the Previous button, and see quantities that they did not enter. More often, users return to a...
0
1262
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 they click submit I want to save their postback data (i.e., which checkboxes are checked, which radio buttons are pushed and what's typed into the textboxes). Then later I want another user to be able to view one of these forms and elect to...
2
3888
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 save button and when I click the save button the page reloads and the new data is in the cell, however when I close out and come back in the data is no longer there. I have a databind() subroutine which includes a postback included within my code for...
6
2915
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") %>' Width="30px" ToolTip='<%# Eval("M1") %>'></asp:TextBox>
0
9714
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10599
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10346
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10347
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10090
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7635
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4308
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 we have to send another system
2
3832
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.