aspx.cs
public bool ShowInside_model = True;
aspx
<script type="text/javascript">
$(function() {
//判断权限
var ShowInside_model = "<%=ShowInside_model %>";
if(ShowInside_model.toString() == "True")
{
$('[id=tdinside_model]').hide();
$('[id=tdinside_model2]').hide();
}
else
{
$('[id=tdinside_model]').show();
$('[id=tdinside_model2]').show();
}
});
</script>
<body>
<table class="GridBarChi" style="1780px; " id="tb_chi" >
<tr>
<th style="150px;" id="tdinside_model">
内部型号
</th>
</tr>
<asp:Repeater ID="Repeater1" runat="server"
onitemdatabound="Repeater1_ItemDataBound">
<ItemTemplate>
<tr >
<td id="tdinside_model2">
<asp:Label ID="inside_model" runat="server" Text='<%#Eval("inside_model")%>'></asp:Label>
</td>
</tr>
</ItemTemplate>
</asp:Repeater>
</table>
</body>