iBATIS.NET 學習筆記(九)

Supported Types for Parameter Maps and Result Maps (.NET) (.NET)" border="1">CLR TypeObject/Map Property MappingResult Class/Parameter Class**Type Alias**System.ArrayListYesYeslistSystem.BooleanYesYesBoolean, boolSystem.ByteYesYesByte,

防重新整理多次提交

如果你是根據參數來插入資料的話可以用此方法    protected void Page_PreInit(object sender, EventArgs e)    {        if (Request.QueryString["id"] != null)        {            SqlCommand cmd = new SqlCommand("insert into jobs values(@job_desc,@min_lvl,@max_lvl)", con);     

Silverlight – Dynamically Loading an Assembly

Just something that someone asked me about today so sharing here. Imagine that you want to define a portion of your Silverlight application but leave some other piece to run time.For example - a calculation engine or perhaps something more

solve the issue that cannot use converter in xamlreader in silverlight

We cannot new a DataTemplate in code behind, otherwise it will popup an error.There are two solutions to solve this problem, one is to define a DataTemplate in the .xaml file as resources. Such as:<ResourceDictionary   

Silverlight Tips[1]: How to save file without savefiledialog

在Silverlight中, 如果想要save 檔案到硬碟上,必須要提升許可權, 否則只能儲存到MyDocuments 或者MyPictures之類的檔案夾中。如何提升許可權請參照:提升許可權。 有了較高的權限之後,想要save 檔案就是小菜一碟了。View Code SaveFileDialog dialog = new SaveFileDialog(); var isShow = dialog.ShowDialog(); if

精妙SQL語句集合(收集)

下列語句部分是Mssql語句,不可以在access中使用。SQL分類: DDL—資料定義語言 (Data Definition

easy Html5 – Jquery Mobile之ToolBars(Header and Footer)

jquery 在web js架構上的風暴還在繼續卻也隨著移動終端走向了mobile;那麼jquery mobile到底包括些什麼呢簡介工具列是在移動網站和應用中的頭部,尾部或者內容中的工具條;Jquery

我的視訊教程《中小企業OA系統》(降價促銷中)

    經過5個月的製作,和華章合作的《中小企業OA系統》Java培訓視頻終於完成,由機械工業出版社出版發行,並於互動網(chia-pub)發售,詳情請點擊:http://product.china-pub.com/3501706。   

Silverlight5 RC 發行!

 簡單翻譯下,具體內容看部落格http://10rem.net/blog/2011/09/01/silverlight-5-rc-now-availableRC版中在原先silverlight5測試版基礎上增加如下特性: ◦P/Invoke 調用本機函數的支援◦支援 64 位元 !◦向量 (Postscript) 列印◦遠端控制和媒體命令支援◦DataContextChanged 事件◦在瀏覽器中信任的應用程式◦新增PivotViewer 控制項◦媒體應用程式的電源控制 (例如,讓PC

Form中的CheckBox的全部選擇與全部取消

 function CheckBoxSelect(f) { //f = document.Form1 if(document.getElementById("btnAll").value=="選擇全部") {       event.srcElement.value="取消全部";     for(var i=0;i<f.length;i++)    {         var e = f.elements[i];          if(e.type=="checkbox")      

擷取主版頁面的控制項的方法

擷取主版頁面的相關內容有兩種方法1 通過findcontrol找控制項ID 需要在此事件中~因為Page_load中時是先內容頁載入然後才是主版頁面載入    protected void Page_LoadComplete(object sender, EventArgs e)    {        Label2.Text = "現在時間是" + (Master.FindControl("Label1") as Label).Text;        if

資料繫結及其他

綁定資料時用html的圖片控制項不支援虛擬路徑用ResolveUrl方法Eval綁定資料支援格式化資料 <img id="img1" src="<%#ResolveUrl(Eval("Name","~/UpLoadImages/{0}")) %>"  style="width:200px;height:200px" /> 如果是Eval資料並且調用用戶端方法,應為單引雙引符號過多,建議用Html img控制項代替伺服器端控制項<img id="img1" src="

人生有四件事不可以等待

第一是:貧窮貧窮不能等,因為一但時間久了,你將習慣貧窮,到時不但無法突破自我,甚至會抹殺了自己的夢想,而庸庸碌碌的過一輩子. 第二是:夢想 夢想不能等,因為人生不同的階段,會有不同的曆練和想法,試想一個問題:如果你20歲時的夢想,在60歲的時候才得以實現,那會是一個什麼樣的情況? 譬如:你20歲時的夢想是希望能買到一輛法拉利跑車,然後到德國的無限速公路狂飆,你一直努力工作,好不容易到60歲了,總算買得起跑車了,但要實現年輕時的夢想,恐怕也是心有餘而力不足吧? 第三是:家人

同步customorder代碼

private void Tcustomer_Click(object sender, System.Web.UI.ImageClickEventArgs e)   {               SqlConnection con=new SqlConnection(ConfigurationSettings.AppSettings["cnn"]);     con.Open();     string sq1l = "select count(Field_Value) from

動態產生rdlc 報表(原創)

因為公司需求 研究微軟的Reportviewer 因為有許多特別要求所以動態調用 比較靈活我的需求是 根據資料不同的合并表頭 (參考了隨心所欲的部落格文檔 再次表示感謝)CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> string cCount = "";    string dCount = "";    string jCount = 

TREEVIEW點擊文字展開

節點有SelectAction屬性,它可以確定點擊後的行為,選擇Expande就可以了 綁定時節點.SelectAction = TreeNodeSelectAction.Expand;搞定!!!void BindTree(TreeNodeCollection nds, int parentId) {//項目欄樹形菜單產生 TreeNode tn = null; foreach (DataRow dr in

position與relative的區別

之前老弄不明白position到底是怎麼定位的,position屬性其實是指本體對上級的定位。預設的屬性值都是static,靜態。最關鍵的是relative(相對)以及absolute(絕對)。只要把其上一級的樣式屬性position設定為relative就可以了。<div id="A">     <div id="B">     

net匯出excel方法匯總

1、由dataset產生引用http://www.cnblogs.com/yknb/articles/434084.htmlpublic void CreateExcel(DataSet ds,string typeid,string FileName){HttpResponse resp;resp = Page.Response;resp.ContentEncoding =

jQuery表單驗證外掛程式formValidation實現個人化錯誤提示

上期在[jQuery外掛程式Validate驗證表單實現javascript表單驗證功能]和[jQuery外掛程式Validation驗證表單實現javascript表單智能驗證功能]中分別介紹了兩個實現表單驗證的jQuery外掛程式,這裡介紹另外一個表單驗證外掛程式formValidation,這個外掛程式與前面兩個外掛程式的最大區別在於它實現了個人化的錯誤提示資訊,顯示在表單元素右上方類似於提示條,其如下:使用說明需要使用jQuery庫檔案和formValidation庫檔案[下載執行個體代

SQL防注入觸發器

最近很多人被注入攻擊,寫了個觸發器防止iframe,不過不是很推薦,,,呵呵要安全還是要從程式下手,參數化SQLcreate trigger tr_table_insertupdateon tablenamefor insert,updateasif exists (select 1 from inserted where data like '%</script>%' )begin       RAISERROR ('不能修改或者添加',16,1);      

總頁數: 61357 1 .... 59754 59755 59756 59757 59758 .... 61357 Go to: 前往

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.