Time of Update: 2018-12-06
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,
Time of Update: 2018-12-06
如果你是根據參數來插入資料的話可以用此方法 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);
Time of Update: 2018-12-06
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
Time of Update: 2018-12-06
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
Time of Update: 2018-12-06
在Silverlight中, 如果想要save 檔案到硬碟上,必須要提升許可權, 否則只能儲存到MyDocuments 或者MyPictures之類的檔案夾中。如何提升許可權請參照:提升許可權。 有了較高的權限之後,想要save 檔案就是小菜一碟了。View Code SaveFileDialog dialog = new SaveFileDialog(); var isShow = dialog.ShowDialog(); if
Time of Update: 2018-12-06
下列語句部分是Mssql語句,不可以在access中使用。SQL分類: DDL—資料定義語言 (Data Definition
Time of Update: 2018-12-06
jquery 在web js架構上的風暴還在繼續卻也隨著移動終端走向了mobile;那麼jquery mobile到底包括些什麼呢簡介工具列是在移動網站和應用中的頭部,尾部或者內容中的工具條;Jquery
Time of Update: 2018-12-06
經過5個月的製作,和華章合作的《中小企業OA系統》Java培訓視頻終於完成,由機械工業出版社出版發行,並於互動網(chia-pub)發售,詳情請點擊:http://product.china-pub.com/3501706。
Time of Update: 2018-12-06
簡單翻譯下,具體內容看部落格http://10rem.net/blog/2011/09/01/silverlight-5-rc-now-availableRC版中在原先silverlight5測試版基礎上增加如下特性: ◦P/Invoke 調用本機函數的支援◦支援 64 位元 !◦向量 (Postscript) 列印◦遠端控制和媒體命令支援◦DataContextChanged 事件◦在瀏覽器中信任的應用程式◦新增PivotViewer 控制項◦媒體應用程式的電源控制 (例如,讓PC
Time of Update: 2018-12-06
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")
Time of Update: 2018-12-06
擷取主版頁面的相關內容有兩種方法1 通過findcontrol找控制項ID 需要在此事件中~因為Page_load中時是先內容頁載入然後才是主版頁面載入 protected void Page_LoadComplete(object sender, EventArgs e) { Label2.Text = "現在時間是" + (Master.FindControl("Label1") as Label).Text; if
Time of Update: 2018-12-06
綁定資料時用html的圖片控制項不支援虛擬路徑用ResolveUrl方法Eval綁定資料支援格式化資料 <img id="img1" src="<%#ResolveUrl(Eval("Name","~/UpLoadImages/{0}")) %>" style="width:200px;height:200px" /> 如果是Eval資料並且調用用戶端方法,應為單引雙引符號過多,建議用Html img控制項代替伺服器端控制項<img id="img1" src="
Time of Update: 2018-12-06
第一是:貧窮貧窮不能等,因為一但時間久了,你將習慣貧窮,到時不但無法突破自我,甚至會抹殺了自己的夢想,而庸庸碌碌的過一輩子. 第二是:夢想 夢想不能等,因為人生不同的階段,會有不同的曆練和想法,試想一個問題:如果你20歲時的夢想,在60歲的時候才得以實現,那會是一個什麼樣的情況? 譬如:你20歲時的夢想是希望能買到一輛法拉利跑車,然後到德國的無限速公路狂飆,你一直努力工作,好不容易到60歲了,總算買得起跑車了,但要實現年輕時的夢想,恐怕也是心有餘而力不足吧? 第三是:家人
Time of Update: 2018-12-06
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
Time of Update: 2018-12-06
因為公司需求 研究微軟的Reportviewer 因為有許多特別要求所以動態調用 比較靈活我的需求是 根據資料不同的合并表頭 (參考了隨心所欲的部落格文檔 再次表示感謝)CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> string cCount = ""; string dCount = ""; string jCount =
Time of Update: 2018-12-06
節點有SelectAction屬性,它可以確定點擊後的行為,選擇Expande就可以了 綁定時節點.SelectAction = TreeNodeSelectAction.Expand;搞定!!!void BindTree(TreeNodeCollection nds, int parentId) {//項目欄樹形菜單產生 TreeNode tn = null; foreach (DataRow dr in
Time of Update: 2018-12-06
之前老弄不明白position到底是怎麼定位的,position屬性其實是指本體對上級的定位。預設的屬性值都是static,靜態。最關鍵的是relative(相對)以及absolute(絕對)。只要把其上一級的樣式屬性position設定為relative就可以了。<div id="A"> <div id="B">
Time of Update: 2018-12-06
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 =
Time of Update: 2018-12-06
上期在[jQuery外掛程式Validate驗證表單實現javascript表單驗證功能]和[jQuery外掛程式Validation驗證表單實現javascript表單智能驗證功能]中分別介紹了兩個實現表單驗證的jQuery外掛程式,這裡介紹另外一個表單驗證外掛程式formValidation,這個外掛程式與前面兩個外掛程式的最大區別在於它實現了個人化的錯誤提示資訊,顯示在表單元素右上方類似於提示條,其如下:使用說明需要使用jQuery庫檔案和formValidation庫檔案[下載執行個體代
Time of Update: 2018-12-06
最近很多人被注入攻擊,寫了個觸發器防止iframe,不過不是很推薦,,,呵呵要安全還是要從程式下手,參數化SQLcreate trigger tr_table_insertupdateon tablenamefor insert,updateasif exists (select 1 from inserted where data like '%</script>%' )begin RAISERROR ('不能修改或者添加',16,1);