I\'m creating one html table. I want to hide the table row. I\'m putting the attributes runat=server
and id
for the particular row, but the row has
You can use data binding to control the visibility of a control. That should solve your problem.
some content...
This content will only be rendered if strFlag is "d" or "y"
more content...
On your OnLoad method, you will need to call the DataBind() method to either the PlaceHolder, or any control that contains it, like the tr or even Page:
protected override void OnLoad(EventArgs e) {
base.OnLoad(e);
Page.DataBind();
}