JQ-UI控件记录

来源:互联网 发布:seo外包公司哪家好 编辑:程序博客网 时间:2024/06/05 19:32

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


读取分离

 

原创粉丝点击