Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > ASP.NET - How to bind() a dataset to a datagrid using javascript from the client

Reply
Thread Tools

ASP.NET - How to bind() a dataset to a datagrid using javascript from the client

 
 
Brian Potroz
Guest
Posts: n/a
 
      05-03-2005
Hi Experts,


Can you please inform me how to bind() a dataset to a datagrid using
javascript from the client in ASP.NET ?

I have successfully returned / tested the dataset from the server (VB
codebehind) and have applied it to the datagrid.datasource as follows with
no errors.

'parent.document.stsFrme.document.all.DataGrid1.Da taSource=response.value;'
(also using frames)

Can you please let me know how to bind this dataset to the datagrid.


Kind Regards...

Brian Potroz


 
Reply With Quote
 
 
 
 
Brian Potroz
Guest
Posts: n/a
 
      05-04-2005
Elyiyahu,


Thank you for your feedback regarding this issue.

I am using the Ajax.dll reference within my project to post a request from
the client to the server (obtaining the dataset) and again returning it back
to the client. Using javascript, I am then setting the datagrid.datasource
to my dataset (that works fine, no errors), if I can do that from the client
then I should be able to bind the datasource ?

Here is my javascript which sets the datasource of the datagrid from the
client:

'parent.document.stsFrme.document.all.DataGrid1.Da taSource=response.value'


Kind Regards...

Brian

"Eliyahu Goldin" <> wrote in message
news:...
> Brian,
>
> Client has no idea about what DataSource is. It doesn't know anything

about
> server side. All data source setting and databinding must be on server

side.
> What client can do is to pass to the server a parameter that the server

will
> take into account in its data setup operations.
>
> Eliyahu
>
> "Brian Potroz" <> wrote in message
> news:%...
> > Hi Experts,
> >
> >
> > Can you please inform me how to bind() a dataset to a datagrid using
> > javascript from the client in ASP.NET ?
> >
> > I have successfully returned / tested the dataset from the server (VB
> > codebehind) and have applied it to the datagrid.datasource as follows

with
> > no errors.
> >
> >

>

'parent.document.stsFrme.document.all.DataGrid1.Da taSource=response.value;'
> > (also using frames)
> >
> > Can you please let me know how to bind this dataset to the datagrid.
> >
> >
> > Kind Regards...
> >
> > Brian Potroz
> >
> >

>
>



 
Reply With Quote
 
 
 
 
Eliyahu Goldin
Guest
Posts: n/a
 
      05-04-2005
Brian,

Client has no idea about what DataSource is. It doesn't know anything about
server side. All data source setting and databinding must be on server side.
What client can do is to pass to the server a parameter that the server will
take into account in its data setup operations.

Eliyahu

"Brian Potroz" <> wrote in message
news:%...
> Hi Experts,
>
>
> Can you please inform me how to bind() a dataset to a datagrid using
> javascript from the client in ASP.NET ?
>
> I have successfully returned / tested the dataset from the server (VB
> codebehind) and have applied it to the datagrid.datasource as follows with
> no errors.
>
>

'parent.document.stsFrme.document.all.DataGrid1.Da taSource=response.value;'
> (also using frames)
>
> Can you please let me know how to bind this dataset to the datagrid.
>
>
> Kind Regards...
>
> Brian Potroz
>
>



 
Reply With Quote
 
samuelrobertson@gmail.com
Guest
Posts: n/a
 
      05-06-2005
Hi,

If you want to do this you'll have to parse the datasource in
javascript somehow and add all the table elements using dynamic
javascript. In this case don't use a datagrid just use a placeholder
because when you build the table it won't function as a asp.net
datagrid anyway as the control ids won't be set propertly and you
didn't build the datagrid server side.

Basically the previous post is correct. You want to do something that
is impossible. The datagrid cannot be manipulated client side, except
possibly to read a few values from it, attach alerts to it, etc. I
would never think of *building* one client-side.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
DataSet and dataSet JimO ASP .Net 2 03-08-2006 02:39 PM
copying a datatable content from an untyped dataset into a table which is inside a typed dataset Nedu N ASP .Net 2 10-31-2003 01:05 PM
Ccopying a datatable content from an untyped dataset into a table which is inside a typed dataset Nedu N ASP .Net 1 10-31-2003 02:39 AM
DataSet to DataSet Joseph D. DeJohn ASP .Net 1 08-04-2003 03:25 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57