468,103 Members | 1,170 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,103 developers. It's quick & easy.

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 1054
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Ramsi | last post: by
3 posts views Thread by RUSSELL MCGINNIS | last post: by
11 posts views Thread by antonyliu2002 | last post: by
2 posts views Thread by John Kotuby | last post: by
6 posts views Thread by Brian Simmons | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.