Hide Gridview Data but still accessible
I use a gridview to query a DB and pull out results. The View then places the results in the view on the page. I t开发者_开发百科hen use a JS function to grab the data. Is there anyway can hide the gridview but still have the data on the page html side?
How do you mean "hide"? You can always use CSS to set the display to none. The GridView would still be on the page in HTML but not visible to the user.
document.getElementById('myGridID').style.display = 'none';
Use CSS display: none;
rather then the visibility property of the gridview.
精彩评论