By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,925 Members | 727 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,925 IT Pros & Developers. It's quick & easy.

dataset as parameter to javascript function

P: n/a
How I can pass dataset as parameter to javascript function?
May 3 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Javascript runs on client whereas datasets live on server in dotnet. There
is nothing on client representing a dataset.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
<Swati Jainwrote in message news:u0*************@TK2MSFTNGP04.phx.gbl...
How I can pass dataset as parameter to javascript function?

May 3 '07 #2

P: n/a
Hello Swati,

What are you going to do?
Adding to Eliyahu, why not to sent array to the JS?

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

SJHow I can pass dataset as parameter to javascript function?
SJ>
May 3 '07 #3

P: n/a
You cant, but you could convert the dataset to an array or an XML data
island if its complex and use it as you would a dataset. Theres a cross
browser compatible example her, but I've not tried it. Might help you.

http://www.builderau.com.au/program/...0274592,00.htm

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog

<Swati Jainwrote in message news:u0*************@TK2MSFTNGP04.phx.gbl...
How I can pass dataset as parameter to javascript function?

May 3 '07 #4

P: n/a
typically this would be done by converting the DataSet into its JSON
representation.
If you look at Anthem.Net (on sourceforge.net) it has a built-in object - to
- JSON set of methods that will show how this is done.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Swati Jain" wrote:
How I can pass dataset as parameter to javascript function?
May 3 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.