473,473 Members | 2,120 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

dataset into javascript array

NH
Hi,

I am trying to minimise postback in my web app. I have a number of
inter-dependent dropdowns, an onselectedindexchange event fires for each one
which obviously causes a postback. Is there a way I can get all my data from
a dataset\datareader into some javascript arrays and then use client side
events to handle the inter-dependent dropdowns? Any code examples?

I know in ASP.Net 2.0 there is a feature called "Client Callback" which
sounds like something I will use but in the meantime has anyone achieved what
I am trying to do?

Thanks
A
Nov 19 '05 #1
5 2297
Here's AJAX.NET, which will help with that:

http://ajax.schwarz-interactive.de/c...e/default.aspx

Jason Diamond wrote his own, which is less configuration hassle:

http://jason.diamond.name/weblog/200...ot-net-library

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

I am trying to minimise postback in my web app. I have a number of
inter-dependent dropdowns, an onselectedindexchange event fires for
each one which obviously causes a postback. Is there a way I can get
all my data from a dataset\datareader into some javascript arrays and
then use client side events to handle the inter-dependent dropdowns?
Any code examples?

I know in ASP.Net 2.0 there is a feature called "Client Callback"
which sounds like something I will use but in the meantime has anyone
achieved what I am trying to do?

Thanks
A


Nov 19 '05 #2
NH
Thanks, I havnt heard of that, I will check it out..

"Brock Allen" wrote:
Here's AJAX.NET, which will help with that:

http://ajax.schwarz-interactive.de/c...e/default.aspx

Jason Diamond wrote his own, which is less configuration hassle:

http://jason.diamond.name/weblog/200...ot-net-library

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

I am trying to minimise postback in my web app. I have a number of
inter-dependent dropdowns, an onselectedindexchange event fires for
each one which obviously causes a postback. Is there a way I can get
all my data from a dataset\datareader into some javascript arrays and
then use client side events to handle the inter-dependent dropdowns?
Any code examples?

I know in ASP.Net 2.0 there is a feature called "Client Callback"
which sounds like something I will use but in the meantime has anyone
achieved what I am trying to do?

Thanks
A


Nov 19 '05 #3
NH
Thanks, I havnt heard of that, I will check it out..

"Brock Allen" wrote:
Here's AJAX.NET, which will help with that:

http://ajax.schwarz-interactive.de/c...e/default.aspx

Jason Diamond wrote his own, which is less configuration hassle:

http://jason.diamond.name/weblog/200...ot-net-library

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

I am trying to minimise postback in my web app. I have a number of
inter-dependent dropdowns, an onselectedindexchange event fires for
each one which obviously causes a postback. Is there a way I can get
all my data from a dataset\datareader into some javascript arrays and
then use client side events to handle the inter-dependent dropdowns?
Any code examples?

I know in ASP.Net 2.0 there is a feature called "Client Callback"
which sounds like something I will use but in the meantime has anyone
achieved what I am trying to do?

Thanks
A


Nov 19 '05 #4
NH
Hi,

AJAX.Net looks very promising, it certainly will improve the user experience.

There is one thing I am struggling to achieve with it, I have an asp.net
dropdown list. This has autpostback=False and has a clinet side OnChange
event which fires off a ajax server side function. This function retrives
rows for a dependent dropdown list and the value of the selected item from
the first dropdown is needed. But referencing dropdown1.selecteditem.value in
the server side fucntion doesn't work.

This is I assume becasuse there is no postback and the server doesnt know
the dropdown1 has changed, it has changed only on the client side. How can I
get the selecteditem.value into the ajax server side function?

"NH" wrote:
Thanks, I havnt heard of that, I will check it out..

"Brock Allen" wrote:
Here's AJAX.NET, which will help with that:

http://ajax.schwarz-interactive.de/c...e/default.aspx

Jason Diamond wrote his own, which is less configuration hassle:

http://jason.diamond.name/weblog/200...ot-net-library

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

I am trying to minimise postback in my web app. I have a number of
inter-dependent dropdowns, an onselectedindexchange event fires for
each one which obviously causes a postback. Is there a way I can get
all my data from a dataset\datareader into some javascript arrays and
then use client side events to handle the inter-dependent dropdowns?
Any code examples?

I know in ASP.Net 2.0 there is a feature called "Client Callback"
which sounds like something I will use but in the meantime has anyone
achieved what I am trying to do?

Thanks
A


Nov 19 '05 #5
NH
Hi,

AJAX.Net looks very promising, it certainly will improve the user experience.

There is one thing I am struggling to achieve with it, I have an asp.net
dropdown list. This has autpostback=False and has a clinet side OnChange
event which fires off a ajax server side function. This function retrives
rows for a dependent dropdown list and the value of the selected item from
the first dropdown is needed. But referencing dropdown1.selecteditem.value in
the server side fucntion doesn't work.

This is I assume becasuse there is no postback and the server doesnt know
the dropdown1 has changed, it has changed only on the client side. How can I
get the selecteditem.value into the ajax server side function?

"NH" wrote:
Thanks, I havnt heard of that, I will check it out..

"Brock Allen" wrote:
Here's AJAX.NET, which will help with that:

http://ajax.schwarz-interactive.de/c...e/default.aspx

Jason Diamond wrote his own, which is less configuration hassle:

http://jason.diamond.name/weblog/200...ot-net-library

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

I am trying to minimise postback in my web app. I have a number of
inter-dependent dropdowns, an onselectedindexchange event fires for
each one which obviously causes a postback. Is there a way I can get
all my data from a dataset\datareader into some javascript arrays and
then use client side events to handle the inter-dependent dropdowns?
Any code examples?

I know in ASP.Net 2.0 there is a feature called "Client Callback"
which sounds like something I will use but in the meantime has anyone
achieved what I am trying to do?

Thanks
A


Nov 19 '05 #6

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

Similar topics

4
by: JesusFreak | last post by:
From: us_traveller@yahoo.com (JesusFreak) Newsgroups: microsoft.public.scripting.jscript Subject: toolbar script problem NNTP-Posting-Host: 192.92.126.136 Recently, I downloaded the following...
1
by: David D. McCrory | last post by:
I have the following that returns an array of a struct and I want to load it into a DataSet on the consumer side.....Can someone provide me with an example of how to use the DataSet.ReadXml()...
2
by: Marty McDonald | last post by:
I have an array of objects (my own custom class). I'm trying to convert that array to a dataset. So I serialize the array to XML, then try to load the XML to a dataset. MemoryStream mem = new...
1
by: STeve | last post by:
Hi guys, I was wondering how I would go about creating a string array from a single column from a dataset. What I was thinking was iterate through each row in the dataset, finding out the size...
5
by: Trond | last post by:
I have a webservice that is returning a dataset. In dataset there is a table with 4 columns. (LDate, LTime, LDepth and ServiceNumber) I then try to read only 2 of the columns into array (double...
12
by: Graham Blandford | last post by:
Hi all, Would someone be able to tell me the most 'graceful' way of removing unwanted rows from a dataset based on a condition prior to update? OR, resetting the rows all to unchanged after they...
104
by: Leszek | last post by:
Hi. Is it possible in javascript to operate on an array without knowing how mamy elements it has? What i want to do is sending an array to a script, and this script should add all values from...
0
Akatz712
by: Akatz712 | last post by:
I may need to post this on another forum, but I will try here first. I have a browser client application which generates a dataset - meaning many rows of data, in an internal javascript array. ...
4
by: Swati Jain | last post by:
How I can pass dataset as parameter to javascript function?
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
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
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
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
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.