Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

asp.net - aspnet table - specify TableCell width? -


i've asp.net table , i'm trying format columns equal widths, or 4 columns of 20%, 30%, 20% , 30%. following code not working:

<asp:tablecell width="30%"> 

the 'height' attribute works isn't 1 i'm after. appreciated. thanks

it's not working because width property expecting value of unit type, defaults pixels.. couldn't find example shows how create instance of unit type of percentage

which leaves me suggest how css..

  1. give tablecell cssclass, , set width in stylesheet

    <asp:tablecell cssclass="tablecellwidth30">

    .tablecellwidth30 { width:30%; }

  2. use style property , set width inline

    <asp:tablecell style="width:30%;">


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -