JQ-UI控制項記錄

來源:互聯網
上載者:User

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

讀取分離

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.