开发者

Hide Gridview Data but still accessible

开发者 https://www.devze.com 2023-03-10 10:57 出处:网络
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 anywaycan hide the gri

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消