473,395 Members | 2,443 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

cutting down on postbacks

I have a payment and shipping information entry page in my application that
has two sets of address fields. I have a radio button the users can set if
the addresses are the same. That radio button does an auto postback which
triggers an event to disable the second set of fields and fill in values.
This all works fine, but can be slow for the postback. The client likes the
way the page works, but not the performance.
So, is there a way I can use .net to try and do this all on the client side
if the browser is able and only post-back if it can't? Any other
suggestions? Thanks!

Matt
Nov 18 '05 #1
1 1031
Use javascript for this. Any .Net routines you write are going to be
executed server side.
You'll have to take out any attribute of the radio button that causes the
postback and just make a javascript call with onclick().
What .Net does provide are ways to add javascript to the page, like
RegisterClientScriptBlock,
which you can use, for example, if you need to add dynamically added
textbox id's to the javascript.

Jim

"MattB" <so********@yahoo.com> wrote in message
news:c4*************@ID-86156.news.uni-berlin.de...
I have a payment and shipping information entry page in my application that has two sets of address fields. I have a radio button the users can set if
the addresses are the same. That radio button does an auto postback which
triggers an event to disable the second set of fields and fill in values.
This all works fine, but can be slow for the postback. The client likes the way the page works, but not the performance.
So, is there a way I can use .net to try and do this all on the client side if the browser is able and only post-back if it can't? Any other
suggestions? Thanks!

Matt

Nov 18 '05 #2

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

Similar topics

5
by: Liberal | last post by:
I am looking for the simplest forum, bbs script which has those features? new messages will be displayed only after the administrator reviewed allow users post without signing up display the...
5
by: Dave | last post by:
(Second Try) Greetings, I have an asp.net web application that utilizes a User Control at the top of the page. My User Control contains a Server Control menu which will require postbacks. ...
3
by: runtoofar | last post by:
I have an ASCX user control with a drop down list inside an ASPX (C#) page. The user selects an item from the DDL, clicks a button, and the DDL.SelectedValue is supposed to be sent to another...
4
by: rodchar | last post by:
Hey all, I was wondering againg...on my ASP.NET app I have a drop down list. I've set the control to AutoPostBack=True. When I run this app, I select something out of the drop down list and the...
1
by: Boris Twila | last post by:
I just want to have 1 drop down list fill the other drop down list without a round trip. Is there some really simple ajax thing i can copy and use, or is it a big deal do i habe to install an...
0
by: gregfocker | last post by:
I installed the new RTM version of ASP.NET 2.0 AJAX Extensions 1.0 released on Tuesday (1/23). I made the required changes to the web.config file to go from the RC version to the RTM version. ...
1
by: Kursat | last post by:
Hi, I have a question about Ajax postbacks : - Does ASP.NET process multiple UpdatePanel postbacks in single thread when two or more different update panel postbacks occur at the same time for...
4
by: Nathan Sokalski | last post by:
I have 2 private variables in my class that I need to remember the values of between postbacks (or actually callbacks, since I am using AJAX). I want to avoid using session variables, if possible....
4
by: DanWeaver | last post by:
I am trying to implement a "thumbs up- down" scoring system- I have an asp: repeater control to spit to my page a series of unique data eg John Yay- 2 Nay 10 Lucy Yay- 5 Nay 12 Susie Yay- 25 Nay...
0
by: Yesideez | last post by:
Hi all, first post here. Found this site using Google while trying to figure out why I couldn't add a URL to a button and thanks to an existing question on here, I've done it. Problem is, seems...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...
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,...

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.