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

Home Posts Topics Members FAQ

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 1199
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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
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
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
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...
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?

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.