473,408 Members | 1,735 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,408 software developers and data experts.

ClientSide event processing loading data

Thanks Michelle,
How could I achieve the second one.I do not like Flashing windows in
response to selection of an item.
I agree the data transfer is very little but the same data transferred for
more than once takes multiple of the initial load time.

I used to use <%....%> in asp to achieve the forbidden method( :) just
kidding) of client side scripting. The Script tags were used to create a
data array with Database data relevent to the page.

Could anyone please tell me the relevent one here.

Thanks

"Michelle Stone" <mi********@yahoo.com> wrote in message
news:06****************************@phx.gbl...
I don't know if I don't see some things, but I certainly
cannot find the "too much data" coming in due to the
postback.

Make sure you put most of the code in the PAGE_LOAD
function within the if (!IsPostBack) { } block. And the
code you write for the LIST1 selection-change will be
only retrieving values for the LIST2 (which is
inevitable). So where are the extra bytes coming in?

If you want to avoid the postback (the annoying screen-
flashing), you will have to download all the records
possible for LIST2 and then use javascript to filter the
second LIST depending on the selection in the first LIST.
I do NOT recommend this method, of course unless you are
talking about a maximum of 10 or 15 items.

-----Original Message-----
Thanks Bryan,
If I write an event to post back on List1 Select then it

could be expensive
one and going back and forth on a lower Bandwidth might

not be a good idea.
I know transfer a whole lot of data makes similar

problems but looks like
that is better evil.

any other ideas?
"Bryan Masephol" <ma******@uwec.edu> wrote in message
news:OD**************@TK2MSFTNGP11.phx.gbl...
Somewhat simply put... the way I know how to do it

Populate DropDownList1 with data from Table1
Listen for selection event on DropDownList1
In handling event Populate DropDownList2 with info from Table2 Listen for selection event on DropDownList2
Do whatever you want next...

This way requires that when the dropdownlist value is changed that it submits a form (POST) and then runs the selection event... something like that.

Bryan
"anonymous" <an*******@msn.com> wrote in message
news:u4**************@TK2MSFTNGP11.phx.gbl...
> Hi Folks,
> I have a form with two Dropdown list boxes, which get loaded with data from
> Database.
>
> DropDownList1 gets data from Table1
> and
> DropDownList2 gets data from Table2
>
> Table1 has a parent child relationship with Table2 ( has a foreign key
to
> Table1)
>
> DropdrownList2 needs to be loaded with the data

depending up on the > selection in the 1st DropDown.
>
> Can you guys please tell me what is the best way to implement it. >
> In coldFusion I did this way back by creating Data Arrays with the data
in
> Table1 and Table2 andimplemented the rest with

ClientSide java script > loading data in the second Dropdown...
> I think you guys got the picture :).
>
> Tell me a couple of ways of doing it please. I could not find a way to > create client side Array with .NET.
>
> Thanks in Advance,
> a .NET beginner
>
>

.

Nov 18 '05 #1
0 1167

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

Similar topics

4
by: Bob | last post by:
Below is sample code that illustrates what I'm trying to do. For sake of brevity I didn't include the properties of buildBtn that determine what data to request. The problem is I never see...
1
by: Dan | last post by:
All, I have a form with a check box on it for which I have implemented a CheckedChange event. The form is the front end of a complex data entry system. When I load the form I check for...
4
by: Zeebra3 | last post by:
Here goes: I have a web form with several asp:dropdownlists, with which, when selection is changed I want to fire an event defined in some clientside js. The content of the clientside code is...
7
by: Jeff Casbeer | last post by:
New to VB.. What is the VB syntax for posting a Windows event? For example, to have an event fire AFTER a form loads, I'd add a posted call to a "post_load" event, from "load". What is the VB...
10
by: jack | last post by:
Hi guys, I am working on a project which requires an implementation of discrete event simulation in C using linked lists. I would greatly appreciate if someone could provide with some sources...
1
by: puja | last post by:
hi all, I have this .aspx page for which the Page_load event occurs twice. I found out while debugging. After searching google, I tried checking with Page.Ispostback method and also had...
1
by: sfeher | last post by:
Hi All, I need to synchronize on multiple event notifications. After loading a number of scripts in my page ( using document.createElement('script') / appendChild ) I get a notification for...
10
by: shankwheat | last post by:
I'm experimenting with using a AJAX style "processing" icon. The process I'm running in the background with xmlHttp is intensive and takes a 5--10 secs to complete. Instead of my processing icon...
2
by: John Kotuby | last post by:
Hi all, In ASP.NET 2.0 and VB.NET, I am trying to get the OnSelectedIndexChanged event to fire a Javascript function. There is no OnClientClick event for that control. When I try something...
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
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
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
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
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
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...
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,...
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...

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.