http://www.cnblogs.com/gaoweipeng/archive/2010/03/31/1701094.html
http://www.phptogether.com/juidoc/
http://www.jb51.net/article/19368.htm
http://hi.baidu.com/huyangtree/item/8497a126659daf4f46996280-toolTip
MD5
string strPassWord ="12345";--基本數
strPassWord = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(strPassWord, "MD5").ToLower().Substring(8, 16);--轉成MD5
protected static DataSet GetDataSetByXml(string xmlData)
{
try
{
DataSet ds = new DataSet();
using (StringReader xmlSR = new StringReader(xmlData))
{
ds.ReadXml(xmlSR, XmlReadMode.InferTypedSchema); //忽視任何內聯架構,從資料推斷出強型別架構並載入資料
。如果無法推斷,則解釋成字串資料
if (ds.Tables.Count > 0)
{
return ds;
}
}
return null;
}
catch (Exception)
{
return null;
}
}
文字框,4位元字分割
$("#tbCardNo").keyup(function (e) {
$(this).val($(this).val().replace(/\s/g, '').replace(/(\d{4})(?=\d)/g, "$1 "));
if ($(this).val().length > 19) {
$(this).val($(this).val().substring(0, 19));
}
});
不允許使用粘貼功能的文字框
<asp:TextBox ID="tbUserPetrolCardNo" runat="server" ClientIDMode="Static" Width="200px" MaxLength="23" onpaste="return false" oncontextmenu="return false" ></asp:TextBox>
//設為ajax同步模式,以避免初始化訂單資料時出錯
$.ajaxSetup({
async : false
});
$.ajax({
type: "POST",
url: "ActiveCarClubCard.aspx",
async: false,--同步
data: "action=IsExistSecretaryCard&cardNo="+cardno+"&password="+pwd,
success: function (msg) {
if (msg == "true") {
$('#tblInfo').show();
//$('#tblInfo :text').val('');
$('#tbHiddenCardNo').val(cardno);
CreateOrderInfo(cardno);
$('#btnSubmit').removeAttr("disabled");
} else {
$('#tblInfo').hide();
$('#tblOrderInfo').hide();
alert(msg);
}
}
});
提高查詢熟讀noLock解決並發
SELECT COUNT(UserID)
FROM EMPLOYEE WITH (NOLOCK)
JOIN WORKING_GROUP WITH (NOLOCK)
ON EMPLOYEE.UserID = WORKING_GROUP.UserID
讀取分離