badegghyt

统计

常用链接

阅读排行榜

评论排行榜

2009年3月23日 #

download test

test

 

source

posted @ 2009-03-23 16:36 坏-_-蛋 阅读(6) 评论(0) 编辑

Format Number

"{0:C}" 12345.6789 $12,345.68
"{0:C}" -12345.6789 ($12,345.68)
"{0:D}" 12345 12345
"{0:D8}" 12345 00012345
"{0:E}" 12345.6789 1234568E+004
"{0:E10}" 12345.6789 1.2345678900E+004
"{0:F}" 12345.6789 12345.68
"{0:F0}" 12345.6789 12346
"{0:G}" 12345.6789 12345.6789
"{0:G7}" 123456789 1.234568E8
"{0:N}" 12345.6789 12,345.68
"{0:N4}" 123456789 123,456,789.0000
"Total: {0:C}" 12345.6789 Total: $12345.68
 
 
【实际应用】
 
整数:
<asp:TemplateField HeaderText="納入本数&lt;BR&gt;下限">
<Edititemtemplate>
<asp:Label id="lbq納入本数下限" runat="server" Text='<%# Bind("納入本数下限","{0:N0}") %>' Visible='<%# !(bool) 納入本数下限_IsInEditMode %>' style="TEXT-ALIGN:right;"></asp:Label>
<asp:TextBox id="txtgveC03" runat="server" Text='<%# Bind("納入本数下限","{0:N0}") %>' Visible='<%# 納入本数下限_IsInEditMode %>' autocomplete="off" MaxLength="8" Class="entry" Width="60px" style="ime-mode:disabled;Width:64px;TEXT-ALIGN:right;"></asp:TextBox>
</Edititemtemplate>
<Itemtemplate>
<asp:Label id="lbl納入本数下限" runat="server" Text='<%# Bind("納入本数下限","{0:N0}") %>' style="TEXT-ALIGN:right;"></asp:Label>
</Itemtemplate>
</asp:TemplateField>


<asp:TemplateField HeaderText="リベート&lt;BR&gt;実額">
<Edititemtemplate>
<asp:Label id="lbqリベート実額" runat="server" Text='<%# Bind("リベート実額","{0:#,##0}") %>' Visible='<%# !(bool) リベート実額_IsInEditMode %>' style="TEXT-ALIGN:right;"></asp:Label>
<asp:TextBox id="txtgveC02" runat="server" Text='<%# Bind("リベート実額","{0:#,##0}") %>' Visible='<%# リベート実額_IsInEditMode %>' autocomplete="off" MaxLength="8" Class="entry" style="ime-mode:disabled;Width:64px;TEXT-ALIGN:right;"></asp:TextBox>
</Edititemtemplate>
<Itemtemplate>
<asp:Label id="lblリベート実額" runat="server" Text='<%# Bind("リベート実額") %>' style="TEXT-ALIGN:right;"></asp:Label>
</Itemtemplate>
</asp:TemplateField>

posted @ 2009-03-23 16:20 坏-_-蛋 阅读(32) 评论(0) 编辑

2008年12月15日 #

让TextBox看起来像Label

TextBox看起来像Label

功能详细

·           TextBox看起来像Label

 

 

说明

 

 

实现

 

  [方法一]

·           BorderColor设成白色,BorderStyle设成None。示例代码如下:

 

Code

 

 

  [方法二]

·           TextBoxstyle属性设为"color:Black;background-color:White;BORDER-STYLE:none;TEXT-ALIGN:left;PADDING-BOTTOM:0px;"。示例代码如下:

 

Code

 

 

备注

l       为了不让修改,可以加上ReadOnly = “True”

 

参考的网站或文献

 

posted @ 2008-12-15 16:18 坏-_-蛋 阅读(60) 评论(0) 编辑

2008年6月5日 #

求助,请会的人帮我解决,谢谢!


我挺喜欢博客园的,可是有一个地方我很郁闷。就是没法粘贴,从记事本拷,从Word拷,从网站上拷,都不行啊。只能从这里打进去。郁闷,呵呵,有知道怎么可以粘贴的吗?能告诉我吗?小弟在此先谢过了!

posted @ 2008-06-05 10:42 坏-_-蛋 阅读(15) 评论(0) 编辑

2008年5月23日 #

庆祝博客开通^_^


  大家好,我叫坏蛋,今天刚刚开通这个博客,希望以后能和大家愉快的交流:)

  目前的情况是在东京搞IT,快2年了,做过SQL Server 2005的存储过程,PL/SQL和Java,现在在搞Asp.Net,主要是GridView的用法。
目前水平还属于入门级的, 还望各位兄弟姐妹多多指导!

 我的兴趣主要是打WarIII,卡拉OK,游泳,篮球,弹吉他(已经2年没弹了,不好意思在日本卖SAO,哈哈),有志同道合的朋友有机会一起玩哦:)

Bad-_-Egg

posted @ 2008-05-23 15:23 坏-_-蛋 阅读(43) 评论(0) 编辑