Link to home
Start Free TrialLog in
Avatar of lmred
lmredFlag for United States of America

asked on

Setting HTMLTableRow Visible Property

I am having a problem setting the Visible property of my HTMLTableRow. No matter what I do, it is always false. The following returns true...but it won't stay true setting to the visible property.

Convert.ToBoolean(PortalMngr.AppValue("RMISMitStepUsesBudgeted"))

I am using ASP.NET and C#. I have Visual Studio 2005.
<TR id="trIsBudgeted" runat="server"> 
	<TD>Cost (U.S. $)</TD>
	<TD>
	<TABLE id="Table13" cellSpacing="0" cellPadding="0" border="0">
		<TR>
		<TD width="70"><asp:textbox id="cost" runat="server" Width="65px"></asp:textbox></TD>
		<TD><asp:checkbox id="isBudgeted" runat="server" Text="This step has been factored in the applicable budget."></asp:checkbox></TD>
</TR>
	</TABLE>
	</TD>
	</TR>
 
In my code behind:
trIsBudgeted.Visible = Convert.ToBoolean(PortalMngr.AppValue("RMISMitStepUsesBudgeted"));

Open in new window

Avatar of ViceroyFizzlebottom
ViceroyFizzlebottom
Flag of United States of America image

I believe you'll need to set the style such as:

trIsBudgeted.Attributes.Add("style", "visibility:hidden");
Avatar of lmred

ASKER

ViceroyFizzlebottom,

That did not work.
ASKER CERTIFIED SOLUTION
Avatar of ViceroyFizzlebottom
ViceroyFizzlebottom
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial