Click here to Skip to main content
15,897,273 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
i want to set null value as a datasource to the gridview in javascript pls help me
Thanks in advance
Posted

1 solution

You don't seem to know how ASP.NET works. There is no gridview in javascript. There is a grid view in C#, and it renders a table in HTML, which is what javascript works on. You can use jquery ( a javascript library ) to easily clear the content of that table, but your code behind will have no idea you've done that. Jquery can also be used to make an AJAX call to pass info to the server and get back a result, but when the result is to clear all content, that seems like overkill.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900