Time of Update: 2018-12-05
現在的公司做的項目應用的是JQuery架構,正好在學習這方面的知識,以後會經常總結一些這方面的技巧,其實說實在的這個指令碼架構,只要用的多了就熟能生巧了。 JQuery特點:代碼簡練、語義易懂、學習快速、文檔豐富。 jQuery是一個輕量級的指令碼,其代碼非常小巧,最新版的JavaScript包只有20K左右。 jQuery支援CSS1-CSS3,以及基本的xPath。 jQuery是跨瀏覽器的,它支援的瀏覽器包括IE 6.0+, FF 1.5+, Safari 2.0+,
Time of Update: 2018-12-05
讓架構frame自動適應內容的高度 在每個架構子頁面中加入如下代碼 原始碼複製(IE有效)列印關於<script src="../js/jquery.js" type="text/javascript"></script> <script type="text/javascript"> $(function() { setFrmHeight(); });
Time of Update: 2018-12-05
能用foreach遍曆訪問的對象需要實現 IEnumerator 介面或聲明 GetEnumerator 方法的類型應用程式定義域 (application domain) (AppDomain) 一種邊界,它由公用語言運行庫圍繞同一應用程式範圍內建立的對象建立(即,從應用程式進入點開始,沿著對象啟用的序列的任何位置)。應用程式定義域有助於將在一個應用程式中建立的對象與在其他應用程式中建立的對象隔離,以使運行時行為可以預知。在一個單獨的進程中可以存在多個應用程式域。 Managed
Time of Update: 2018-12-05
一、首先需要配置web.config檔案:<system.net> <mailSettings> <smtp from="Emailname"> <network host="smtp.163.com" userName="Emailname" password="Emailpassword" port="25" defaultCredentials="false"/> </smtp>
Time of Update: 2018-12-05
說到hibernate有兩種設定檔hibernate.properties和hibernate.cfg.xml檔案,使用哪種都可以。使用hibernate.cfg.xml檔案的好處是使設定檔更易讀,更強的擴充能力。並且可以直接對對應檔加以配置。(對應檔:O/R Mapping的設定檔,將PO的屬性與資料庫表欄位對應。它是個xml檔案。)下面,我們就看一個hibernate.cfg.xml設定檔的例子: <?xml version="1.0"
Time of Update: 2018-12-05
在頁面載入事件中寫入 if(!IsPostBack){ string caid=Request.QueryString["caid"] //擷取頁面傳過來的值 int x; //定義一個整形變數 if(string.IsNullOrEmpty(caid) || !int.TryPars(caid,out x))// // 如果 字串為null並且為空白 或者字串不是整形資料 就跳轉到首頁 { Response.Redirect("Default.aspx"); }
Time of Update: 2018-12-05
第一、首先匯入兩個命名空間 using System.Security.Cryptography;//md5加密的命名空間 using System.Text;第二,將下面的MD5方法放在你編寫的公用類中 /// <summary> /// MD5加密 /// </summary> /// <param name="strPwd">被加密的字串</param> ///
Time of Update: 2018-12-05
1、document.form.item/document.IDIE中 document.formName.item(”itemName”)FF中 document.formName.elements["elementName"]建議使用document.getElementById(itemName)2, 下標運算IE中 document.forms(”formName”)FF中 document.forms["formName"]IE中 document.getElementsByName(
Time of Update: 2018-12-05
類似 ******* ******* ******* ******* ------- ******* ******* ******* ******* ------- ******* ******* ******* ******* ------- 方法一:<%@ Page Language="C#" %><%@ Import Namespace="System.Data" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Time of Update: 2018-12-05
首先實現UIScrollViewDelegate協議:#import <UIKit/UIKit.h>@interface Activity01ViewController : UIViewController<UIScrollViewDelegate>{ UIScrollView *myscrollview;}@property (nonatomic,retain) UIScrollView *myscrollview;@end實現協議的下列方法:#import &
Time of Update: 2018-12-05
文章目錄 評論 1.C#串連串連Access程式碼: ------------------------------------------------------------------------------- using System.Data;using System.Data.OleDb;..string strConnection="Provider=Microsoft.Jet.OleDb.4.0;";strConnection+
Time of Update: 2018-12-05
在SQL查詢分析器執行以下代碼就可以了。declare @t varchar(255),@c varchar(255) declare table_cursor cursor for select a.name,b.name from sysobjects a,syscolumns b ,systypes c where a.id=b.id and a.xtype='u' and c.name in ('char', 'nchar', 'nvarchar', 'varchar','
Time of Update: 2018-12-05
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><TITLE> New Document </TITLE><META NAME="Generator" CONTENT="EditPlus"><META NAME="Author" CONTENT=""><META NAME="Keywords"
Time of Update: 2018-12-05
NHibernate架構已經出了很久,一直沒趕上用它,閑著沒事,今天來試用一下,結果,配置錯誤N多,都不敢再試了,還好最後還是配置出來了。 首先 沒安裝vs2005的,趕快安裝,安裝好了的可以http://downloads.sourceforge.net/nhibernate/NHibernate-1.2.0.CR1.msi?modtime=1172161735&big_mirror=0 下載好之後
Time of Update: 2018-12-05
今天哀悼日,大家先默哀一分鐘~~~~ 按照慣例,網頁都得變灰色,IE下可以用下面的CSS解決:原始碼複製(IE有效)列印關於html { filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); } html { filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); }
Time of Update: 2018-12-05
引入標頭檔:#import <CommonCrypto/CommonDigest.h>密碼編譯演算法://TODO: md5 加密方法- (NSString*)md5Digest:(NSString *)str{ //32位MD5小寫 const char *cStr = [str UTF8String]; unsigned char result[32]; CC_MD5( cStr, strlen(cStr), result );
Time of Update: 2018-12-05
function copyToClipboard(txt) { if(window.clipboardData) { window.clipboardData.clearData(); window.clipboardData.setData("Text", txt); alert("Your request has been processed successfully.");
Time of Update: 2018-12-05
1.實現功能使用DataList進行資料繫結,並進行資料的修改、刪除等操作。2.步驟1).添加DataList控制項,並定製HeaderTemplate、ItemTemplate、AlternatingItemTemplate、SeparatorTemplate、SelectedItemTemplate、EditItemTemplate、FooterTemplate模板樣式;2).給各功能按鈕設定CommandName屬性,值的類型有edit、update、delete和cancel;3).設
Time of Update: 2018-12-05
Default.aspx.cs code using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using
Time of Update: 2018-12-05
下面是資料庫表 在設計檢視中拖一個TreeView控制項 Default.aspx.cs Code/* *建立人:杜成剛 *建立時間:01/19/2010 22:05:30 *說明: *著作權:夏楚楓 duchenggang.accp@163.com */using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using