472,983 Members | 2,643 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

avoiding postback

NH
Hi,

I have two dropdown lists in a web form. When you choose an entry in the
first list the code retrieves records from the database and displays them in
the second dropdownlist.

Is there a way of avoiding a postback with this by maybe retrieving all the
data at the start and then filtering what should be displayed on the second
dropdown list on the client side?

Thanks
N
Nov 19 '05 #1
2 1187
Sure this can be done, but it requires lots of javascript that you'd need
to write. The model with ASP.NET is a server side model, so most anything
that is dynamic and needs code to execute will go back to the server. If
this is not desired then, like I mentioned above, you'll need to build that
infrastructure yourself.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Hi,

I have two dropdown lists in a web form. When you choose an entry in
the first list the code retrieves records from the database and
displays them in the second dropdownlist.

Is there a way of avoiding a postback with this by maybe retrieving
all the data at the start and then filtering what should be displayed
on the second dropdown list on the client side?

Thanks
N


Nov 19 '05 #2
NH
Thanks, thats pretty much what I thought. It would be nice if Microsoft had
some friendly client side code which would work easily with asp.net, I know
that certain things can be done but its just rather overly complicated.

"Brock Allen" wrote:
Sure this can be done, but it requires lots of javascript that you'd need
to write. The model with ASP.NET is a server side model, so most anything
that is dynamic and needs code to execute will go back to the server. If
this is not desired then, like I mentioned above, you'll need to build that
infrastructure yourself.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Hi,

I have two dropdown lists in a web form. When you choose an entry in
the first list the code retrieves records from the database and
displays them in the second dropdownlist.

Is there a way of avoiding a postback with this by maybe retrieving
all the data at the start and then filtering what should be displayed
on the second dropdown list on the client side?

Thanks
N


Nov 19 '05 #3

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

Similar topics

2
by: RAJ | last post by:
In our multi-tier application, we have several ASP.NET user controls which will update the same data source provided by middle tier logic. In this particular scenario we have one user control...
7
by: Ramsi | last post by:
My development environment is ASP.Net 1.1. Clicked event of a button has lengthy procedure it will take 2 to 4 seconds to process the data. My question is, 1.. If the user clicks the button...
3
by: RUSSELL MCGINNIS | last post by:
I have a web page which is periodically refreshing itself with data from the server. However I dont want this activity to counted towards the session's "activity counter" i.e. if a user does...
8
by: walesboy | last post by:
greetings - I have a btnSubmit button with a Handles btnSubmit.click which works great if all the user does is click that button. But, if the user ALSO changes a text box on the page (which...
4
by: Jim Hammond | last post by:
It would be udeful to be able to get the current on-screen values from a FormView that is databound to an ObjectDataSource by using a callback instead of a postback. For example: public void...
1
by: Timbo | last post by:
Hi all, This is my first message here so i'll try and include all the information that will help you help me out, if possible. Basically I am using C# in ASP.NET 2.0 and have a Repeater...
11
by: antonyliu2002 | last post by:
I know that this has been asked and answered thousands of times. As a matter of fact, I know that I need to say If Not Page.IsPostBack Then 'Do something End If for things that needs to be...
2
by: John Kotuby | last post by:
Hi guys, I am converting a rather complicated database driven Web application from classic ASP to ASP.NET 2.0 using VB 2005 as the programming language. The original ASP application works quite...
6
by: Brian Simmons | last post by:
Hi all, I come from a ColdFusion background, and the majority of the time, here's how we processed a page: 1) The Data entry page would have a submit button which would post to an action page...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...

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.