http://msdn.microsoft.com/zh-cn/vstudio/aa291247%28VS.71%29.aspx
http://msdn.microsoft.com/zh-cn/vstudio/aa291247(VS.71).aspx
http://topic.csdn.net/t/20031226/18/2607395.html
http://stackoverflow.com/questions/555965/javascript-repl-
Please notice this issue when you use the innerHTML function in <a> tag.
注意语法问题
<script type="text/javascript">
//把事件放在onload里,因为我不知道JS如果直接写到这儿是不是会等页面加载完才执行
//使用方式输出GridView的ID是因为某些情况下(如使用了MasterPage)会造成HTML中ID的变化
//颜色值推荐使用Hex,如 #f00 或 #ff0000
window.onload = function(){
GridViewColor("<%=GridView1.ClientID%>","#fff","#eee","#6df","#fd6");
}
//参数依次为(后两个如果指定为空值,则不会发生相应的事件):
//GridView ID, 正常行背景色,交替行背景色,鼠标指向行背景色,鼠标点击后背景色
function GridViewColor(GridViewId, NormalColor, AlterColor, HoverColor, SelectColor){
//获取所有要控制的行
var AllRows = document.getElementById(GridViewId).getElementsByTagName("tr");
//设置每一行的背景色和事件,循环从1 开始而非0,可以避开表头那一行
for(var i=1; i<AllRows.length; i++){
//设定本行默认的背景色
AllRows[i].style.background = i%2==0?NormalColor:AlterColor;
//如果指定了鼠标指向的背景色,则添加onmouseover/onmouseout事件
//处于选中状态的行发生这两个事件时不改变颜色
if(HoverColor != ""){
AllRows[i].onmouseover = function(){if(!this.selected)this.style.background = HoverColor;}
if(i%2 == 0){
AllRows[i].onmouseout = function(){if(!this.selected)this.style.background = NormalColor;}
}
else{
AllRows[i].onmouseout = function(){if(!this.selected)this.style.background = AlterColor;}
}
}
//如果指定了鼠标点击的背景色,则添加onclick事件
//在事件响应中修改被点击行的选中状态
if(SelectColor != ""){
AllRows[i].onclick = function(){
this.style.background = this.style.background==SelectColor?HoverColor:SelectColor;
this.selected = !this.selected;
}
}
}
}
</script>
-->
http://www.cnblogs.com/webabcd/archive/2007/01/03/610735.html
jmail
http://www.cnblogs.com/legoras/articles/814340.html
http://www.cnblogs.com/mmmhhhlll/archive/2004/05/20/10495.html
http://blog.csdn.net/cyhgohappy/archive/2008/02/25/2119489.aspx
<!-- /* Font Definitions */ @font-face {font-family:宋体; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:SimSun; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"/@宋体"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; text-align:justify; text-justify:inter-ideograph; mso-pagination:none; font-size:10.5pt; mso-bidi-font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:宋体; mso-font-kerning:1.0pt;} /* Page Definitions */ @page {mso-page-border-surround-header:no; mso-page-border-surround-footer:no;} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin:36.0pt; mso-footer-margin:36.0pt; mso-paper-source:0;} div.Section1 {page:Section1;} -->
create table NT_SentMailLog
(
LogID int identity(1,1) constraint nt_mlID_pk primary key clustered not null,
kfuserID int not null,
ReceiverMail varchar(100) not null,
MailSubject varchar(100) not null,
MailContent text null,
MailSendDate datetime not null
)
<!-- /* Font Definitions */ @font-face {font-family:宋体; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:SimSun; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"/@宋体"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; text-align:justify; text-justify:inter-ideograph; mso-pagination:none; font-size:10.5pt; mso-bidi-font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:宋体; mso-font-kerning:1.0pt;} /* Page Definitions */ @page {mso-page-border-surround-header:no; mso-page-border-surround-footer:no;} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin:36.0pt; mso-footer-margin:36.0pt; mso-paper-source:0;} div.Section1 {page:Section1;} -->
http://topic.csdn.net/u/20100416/19/a617295a-d7cc-45bd-a11e-9889f2677a22.html?57338
create table NT_MailDraft
(
DraftID int identity(1,1) constraint nt_dtID_pk primary key clustered not null,
kfuserID int not null,
DraftName varchar(100) not null,
DraftContent text null,
IsOverDue tinyint not null,
CreateDate dateti public string FormatPercent(double dblExpression, int intNumDigitsAfterDecimal,
bool bolUseParensForNegativeNumbers, bool bolGroupDigits)
{
string strExpression = null;
NumberFormatInfo _nfi;
_nfi = _nfCulture.NumberFormat;
_nfi.PercentDecimalDigits = intNumDigitsAfterDecimal;
if (!bolGroupDigits)
_nfi.PercentGroupSeparator = "";
if (bolUseParensForNegativeNumbers)
_nfi.PercentNegativePattern = 1;
_nfi.PercentPositivePattern = 1;
strExpression = dblExpression.ToString("P", _nfi);
return strExpression;
}
0.17,4,false,falseme not null
)