Link to home
Start Free TrialLog in
Avatar of pamela rizk
pamela rizkFlag for Lebanon

asked on

Javascript fill gridview from dataste

dear all

i have an asp gridview that contains literal control , buttons and textbox
i would like to fil this gridview from a dataset using javascript
how to do that??
Avatar of gobinath raju
gobinath raju

Create a Data Adapter, create a Command Object with a Select query, set the adapter's command to this command object, issue an adapter.fill(dataset), set the data source of gridview as the dataset and databind the GridView.

For code, a simple Google search will work. You did not even specify a language. I guess you are working in C# and this is your college project. Is it?
Avatar of Obadiah Christopher
What would be the reason to fill up a gridview using Javascript? A gridview.Databind from server-side C# should suffice.
Avatar of pamela rizk

ASKER

because i don't want the server to get the response i want to fill it using client side
any news
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.