用C#怎么使一个<tr>行不显示? if it is an asp:TableRow in asp:Table or a HtmlTableRow, you can set its Visible property to false in C#, otherwise you have to use javascript on the client side to do itSomeTableID.rows[n].style.display="none"; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 可以使用<div id="show" runat="server" visible="false"> //不显示你的<tr>内容</div>在.cs文件里申明show为HtmlControls.HtmlGenericControl在你的操作里可以控制show的显示于否visible=true //显示 漏写了.show.visible=true //显示show.visilbe=false //不显示 <div>里可以嵌套<tr>吗?报错了啊 而且好像说是<div>不能嵌套在<table>中 那就只好用<asp:table><asp:tablerow><asp:tablecell>来解决问题了.faint这样很麻烦.样式用起来也不方便. NET 验证码? 仿腾讯一些网页上的?有谁做过? 初学者的问题 保存前页面的内容 ☆★☆★☆★关于access同时增加一条记录到2个表的问题☆★☆★☆★ Javaxcript的效果大全 aspx页面中怎么插入另一aspx页面 关于从html导出到excel时,中文文件名乱码的问题 datagrid中怎么根据某列的值,找到对应的行呢? CrystalReport导致crash 大家看一下这句话为什么出错?急 treeview 控件是否还有下载?如果有在哪里,请给出url。(结帖率100%)急!!! 请教高手,进来看看!! 上传文件时的问题!
<div id="show" runat="server" visible="false"> //不显示
你的<tr>内容
</div>在.cs文件里申明show为HtmlControls.HtmlGenericControl
在你的操作里可以控制show的显示于否
visible=true //显示
show.visible=true //显示
show.visilbe=false //不显示
<asp:table>
<asp:tablerow>
<asp:tablecell>
来解决问题了.
faint
这样很麻烦.样式用起来也不方便.