Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Is it Possible to Change Table Cell TD width percentage programmatically?

$
0
0

I have the following table:

<table width="100%"><tr><td id="UserMenuIconCell" runat="server" width="3%"><asp:Image ID="UserMenuIcon" runat="server" Height="30px" ImageUrl="~/Images/UserMenuImg.png" Width="30px" /></td><td id="UserMenuNavCell" runat="server" align="left" width="20%"><asp:Menu ID="NavigationMenu" runat="server" DataSourceID="SiteMapDataSource1" onmenuitemdatabound="NavigationMenu_MenuItemDataBound"
                        Orientation="Horizontal"  StaticEnableDefaultPopOutImage="False" staticsubmenuindent="5" Width="229px"><LevelMenuItemStyles><asp:MenuItemStyle CssClass="LoginningUserStyle" /><asp:MenuItemStyle CssClass="SubMenusStyle1" /><asp:MenuItemStyle  CssClass="SubMenusStyle2"/></LevelMenuItemStyles></asp:Menu></td><td align="center" valign="top" rowspan="2" style="text-align: left"><asp:Image ID="Image3" runat="server" Width="275px" Height="125px"
                        ImageUrl="~/Images/MurasalatLogo.png" /></td><td align="left" width="10%" rowspan="2"><asp:Image ID="Image2" runat="server" ImageUrl="~/Images/MinistryLogo.png"
                        Height="125px" style="text-align: center;" Width="125px" /></td></tr><tr><td width="3%"></td><td align="left" width="20%"></td></tr></table> 

I want to change the UserMenuIconCell and UserMenuNavCell width to 1% each programmatically. What are the statement I should write to perform this?


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>