how to bind grid view through java script?
-
Hello friend! I've faced a problem. I want to bind a grid view through java script. Actually, I've web service that returns a data set. I've called the web service from java script. But I cann't bind the returned dataset to grid view. Is there any way to bind dataset with grid view through java script? Pls help me. Thanks!
-
Hello friend! I've faced a problem. I want to bind a grid view through java script. Actually, I've web service that returns a data set. I've called the web service from java script. But I cann't bind the returned dataset to grid view. Is there any way to bind dataset with grid view through java script? Pls help me. Thanks!
samrat.net wrote:
I want to bind a grid view through java script.
Gridview control exists on the server and will be rendered as normal HTML table. So you can't bind a gridview using JS. You can iterate through the data you are getting from webservice and add rows to the table using java script.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions
-
Hello friend! I've faced a problem. I want to bind a grid view through java script. Actually, I've web service that returns a data set. I've called the web service from java script. But I cann't bind the returned dataset to grid view. Is there any way to bind dataset with grid view through java script? Pls help me. Thanks!
I'm not much sure but Have you tried Ajax for your problem?
Amit Agarwal
-
Hello friend! I've faced a problem. I want to bind a grid view through java script. Actually, I've web service that returns a data set. I've called the web service from java script. But I cann't bind the returned dataset to grid view. Is there any way to bind dataset with grid view through java script? Pls help me. Thanks!
BIND : - it means the control is getting parsed/filled by server. with javascript, u are able to change the innerHTML of any control only. that means, you need to call any page asynchronously on which gridview is being BIND and get the HTML of that page ), put that HTML into some control, may be DIV, on your current page. This technique is used where no particular AJAX platform is used (OPEN). refer http://www.w3schools.com/Ajax/ajax_browsers.asp[^] for more knowledge on this.
Ashish Sehajpal