Intellisense for <tr> and <td>
Hey, This is the one i used. For some condition, i want to hide these by using Visible to false.
<开发者_C百科;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!!
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.
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.
精彩评论