How to set RepeatColumns property of a Datalist using CSS?
Does anyone know how to set the RepeatCol开发者_StackOverflow中文版umns property of an ASP.Net Datalist using CSS ?
This is fundamentally impossible.
This property controls how DataList
's server-side code renders its HTML.
CSS is irrelevant.
DataList.RepeatColumns
is a property on a server-side control. CSS alone, being client-side, can't touch it. In order to use CSS to style your rendered HTML, you're going to need to use the actual rendered HTML.
精彩评论