有人可以帮助我显示正确转换为米的英尺单位吗? 在我的ASPX页面上,我获得了以下代码。我不知道小数点后两位如何显示脚。我想显示以下内容: 2.067m = 6.78 ft
我尝试使用几种格式的结果字符串,例如#。#,#。##,#。#0,但是没有任何上述效果。你能帮我吗?
我的网址是https://cargobid.org/iso-container-guide.aspx。 任何帮助将不胜感激。
<span class='<%# IIf(Double.Parse(Eval("insideLenght"), System.Globalization.CultureInfo.InvariantCulture) = 0, "hidden", "col-md-6")%>'>
<%# Container.DataItem("insideLenght")%> m</span>
<span class='<%# IIf(Double.Parse(Eval("insideLenght"), System.Globalization.CultureInfo.InvariantCulture) = 0, "hidden", "col-md-6")%>'>
<%# Convert.ToInt32(Container.DataItem("insideLenght") * 3.2808399000000001).ToString("#.##")%> ft</span>
<span class='<%# IIf(Double.Parse(Eval("insideWidth"), System.Globalization.CultureInfo.InvariantCulture) = 0, "hidden", "col-md-6")%>'>
<%# Container.DataItem("insideWidth")%> m</span>
<span class='<%# IIf(Double.Parse(Eval("insideWidth"), System.Globalization.CultureInfo.InvariantCulture) = 0, "hidden", "col-md-6")%>'>
<%# Convert.ToInt32(Container.DataItem("insideWidth") * 3.2808399000000001).ToString("#.#")%> ft </span>
<span class='<%# IIf(Double.Parse(Eval("insideHeight"), System.Globalization.CultureInfo.InvariantCulture) = 0, "hidden", "col-md-6")%>'>
<%# Container.DataItem("insideHeight")%> m</span>
'> <%#Convert.ToInt32(Container.DataItem(“ insideHeight”)* 3.2808399000000001).ToString(“#。###”)%> ft '> <%#Container.DataItem(“ doorWidth”)%> m '> <%#Convert.ToInt32(Container.DataItem(“ doorWidth”)* 3.2808399000000001).ToString(“#。##”)%> ft '> <%#Container.DataItem(“ doorHeight”)%> m '> <%#Convert.ToInt32(Container.DataItem(“ doorHeight”)* 3.2808399000000001).ToString(“#。#0”)%> ft