//自定义时间样式
public string StrString(string time)
{
return DateTime.Parse(time).ToString("MM-dd", DateTimeFormatInfo.InvariantInfo);
}
//自定义金额样式
public string GetMoney(string money)
{
return Decimal.Parse(money).ToString("0.0", NumberFormatInfo.InvariantInfo) ;
}
//MD5加密
Members.UpPassword(memberId, FormsAuthentication.HashPasswordForStoringInConfigFile(newPwd, "MD5"));
//添加到form1
$("#orders_list").parent().appendTo("#form1");
//截取字符串
<%#DataBinder.Eval(Container.DataItem, "Introduction").ToString().Length > 70 ? DataBinder.Eval(Container.DataItem, "Introduction").ToString().Substring(0, 70) + "..." : DataBinder.Eval(Container.DataItem, "Introduction").ToString()%>
//替换字符,去掉最后一个字符
proModel.Application.TrimEnd(",".ToCharArray()).Replace(",", "、")
<asp:ScriptManager ID="script1" runat="server">
<Services>
<asp:ServiceReference Path="~/Service/InformationTypeService.asmx" />
</Services>
</asp:ScriptManager>
验证手机号码
^0{0,1}(13[0-9]|15[0-9]|18[0-9])[0-9]{8}$
$.each("你的字符串".split(','),function(i,v){
alert('<a href="">'+v+'</a>')
})
this.ddlxz.Items.Insert(0, new ListItem("全部", "0"));
;select @@IDENTITY"
charindex('创业贷款',AskType)>0 判断 AskType是否包含 创业贷款 SQL
string strSql = @"truncate table Emails"; //清空email表中的信息
Request.UrlReferrer.ToString();