Hi Friends
I've a datatable that developed by my colleague and filled at HTML table (old stayle programming)
but the value which I get is decimal, I'm trying to round it but dose not work and getting the following error:HTML Code:<tr> <th>City1</th> <td><%=string.Format("{0:0}", dtHour.Compute("max(field1)", string.Empty))%></td> <td><%=string.Format("{0:0}", dtHour.Compute("min(field1)", string.Empty))%></td> <td><%=dtHour.Compute("round(avg(field1),0)", string.Empty)%></td> <td><%=dtHour.Compute("sum(field1)", string.Empty)%></td> </tr>
please can anyone help to solve that error and rounding decimal value?
Regards




Reply With Quote