Hi,
I have a small question about formatting Label on an ASP.net page.
I use a sqldatasource to retrieve data from our oracle database,
on the page I put a datalist in which I bind the different fields returned by my query.
<asp:Label ID="CPLab" runat="server" Font-Bold="True" Font-Underline="True"
Text='<%# Eval("COMPANYNAME") %>' Font-Names="Times New Roman" Font-Size="11pt"></asp:Label>
One of the field comes from the database with the first letter in capital and others small.
I would like to force the label to display the whole field (all the letters) in uppercase.
By example, this give
Coca-cola -->COCA-COLA
and the same with lowercase
Thierry-->thierry
Acces databse gives ! to force uppercase, but I am unable to find the asp code.
thanks for your help
.UpperCase
{
text-transform:uppercase;
}
apply this to your label and hey presto.