views:

34

answers:

3

Hey, This is the one i used. For some condition, i want to hide these by using Visible to false.

<tr id="trpackage" runat="server" valign="top" align="center">
<td id="tdpack" runat="server" style="display: none;" align="center">
.......
</td>
</tr>

In the code behind, Intellisense does not show me either trpackage or tdpack. Can someone help me !! Thank you in advance!!

A: 

Scratch that, OP edited post and this is incorrect.

codykrieger
A: 

Table elements with runat="server" tend to become HtmlTable or related elements and indeed rows and cells will not appear as properties. If you want to avoid all that hassle, put a PlaceHolder around your elements and use that to hide them.

Matti Virkkunen
A: 

Putting runat="server" on an html element makes it mapped to the type HtmlGenericControl if there are no specified HTML controls for it available. You should be able to type in

trpackage.

and then Intellisense would kick in. If you type trpack and then the key combination ctrl + space then Intellisense already kicks in directly for that element as well.

It should work from at least Visual Studio 2008 and higher. I don't have VS2005 on this machine so I couldn't test for that.

XIII
No. It does it work! :(
Ram