robossa
asked on
How to format Detailsview web control ASP.net with stylesheet css
Hello! I need to format the display of detailsview webcontrol (Asp.net) using stylesheet css and not the attributes of this control. Thnaks
ASKER
Thnaks. It is not working. To be more especific, I want to "translate" the format properties of the detailsview web control such as the followings in a stylesheet css. How will you do that, since the sample you wrote does not work.
<asp:DetailsView ID="_detailsView" runat="server"
AutoGenerateRows="false" DataKeyNames="BusinessList ingID"
DataSourceID="EditDataSour ce"
EmptyDataText="No Data"
AlternatingRowStyle-BackCo lor = "#abbde3"
Width="400"
OnDataBound="_detailsView_ DataBound"
Headertext="Business or Ranch Information"
HeaderStyle-BackColor="#00 0066"
HeaderStyle-ForeColor="#ff ffff"
Showheader="true"
CssSelectorClass="datailsv iew"
>
<asp:DetailsView ID="_detailsView" runat="server"
AutoGenerateRows="false" DataKeyNames="BusinessList
DataSourceID="EditDataSour
EmptyDataText="No Data"
AlternatingRowStyle-BackCo
Width="400"
OnDataBound="_detailsView_
Headertext="Business or Ranch Information"
HeaderStyle-BackColor="#00
HeaderStyle-ForeColor="#ff
Showheader="true"
CssSelectorClass="datailsv
>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
DetailsView ID: myDetailsView
Example CSS:
#myDetailsView {
background-color: #eee;
border: 3px solid #000;
color: #00f;
font-family: Courier;
}
Is that the kind of thing that you are looking for?