Time of Update: 2018-12-07
最近試了下仿msn的快顯視窗,因為需要在快顯視窗裡隨機推薦一篇隨筆,所以寫了段js代碼來隨機擷取部落格中的某篇隨筆,主要原理就是用document.getElementsByTagName("A")首先獲得所有超連結;然後通過判斷if
Time of Update: 2018-12-07
用GridView或者FormView時,如果刪除語句是:Delete from tTable where
Time of Update: 2018-12-07
線程間操作無效:
Time of Update: 2018-12-07
Try the following
Time of Update: 2018-12-07
轉自:http://recordsome.blogsome.com/2006/07/06/p121/一開始我使用了Code highlighting produced by Actipro CodeHighlighter
Time of Update: 2018-12-07
看到了阿蒙的一篇關於跳槽vs留住人才的文章-- -我拿什麼來留你? 我的人才! 。感覺頗深,作為一個員工也很有同感,轉過來大家看看。阿蒙的blog地址:http://blog.csdn.net/harrymeng/
Time of Update: 2018-12-07
vs2005中可以非常方便的把select語句放在SqlDataSource裡再與Gridview綁定,省去了很多代碼。但是如果想增加查詢就不太方便了。比如我想首次進入頁面時在gridview裡面顯示全部的資料,然後下面有些查詢條件比如姓名、email等,輸入姓名點查詢則會在gridview裡顯示過濾後的資料。以前是這麼做的:在SqlDataSource裡面寫查詢分支,比如if @op=1begin select .....endelse if @op=2begin
Time of Update: 2018-12-07
SELECT dbo.FEEDBACK_VIEW.PK_ID, dbo.FEEDBACK_VIEW.fld_channel_id, dbo.FEEDBACK_VIEW.fld_feedback_type, dbo.FEEDBACK_VIEW.fld_feedback, dbo.FEEDBACK_VIEW.fld_createtime, dbo.FEEDBACK_VIEW.fld_service1mail, dbo.FEEDBACK_VIEW.f
Time of Update: 2018-12-07
終於辭職了。 從春節後偷偷摸摸找工作開始,到今天辭職,真是一段難熬的時期啊。要離開原來的公司了,但還是有點捨不得,領導同事都很優秀,只是每個人都有自己要辭職的原因。我這裡只是寫一下自己辭職的過程和想法,一方面勉勵自己為未來加油,一方面給其他兄弟姐妹們一個經驗:) 來o單位的時候簽了五年的合約,當時剛畢業,而且o單位解決戶口,所以也就沒想那麼多,甚至合約都沒有通讀一遍,在這裡勸告剛畢業或者要簽合約的朋友一定要好好看看合約再簽,這些都是關係自己將來的東西,就算當時沒想違約什麼的也一定要
Time of Update: 2018-12-07
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> class Program { static void Main(string[] args) { String aa = "%.,46,2xb1bfs.,,"; int pos = isLetter(aa);
Time of Update: 2018-12-07
我們知道,利用錨點可以實現頁面連結跳轉,也可以實現同一頁面內的跳轉功能。例如:<a href="somepage.htm>某頁面連結</a> 可以跳轉連結到somepage.htm,<a href="#top">回頂端</a> 可以跳轉到同一頁面中,我們定義的錨點<a
Time of Update: 2018-12-07
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "checklink") { changecss(); changegridviewcolor(); ((LinkButton)e.CommandSource).CssClass = "hong"
Time of Update: 2018-12-07
轉自:夢幻DotNet 一個Regex就是由一般字元(例如字元 a 到 z)以及特殊字元(稱為元字元)組成的文字模式。該模式描述在尋找文字主體時待匹配的一個或多個字串。Regex作為一個模板,將某個字元模式與所搜尋的字串進行匹配。如: JScriptVBScript匹配/^\[ \t]*$/"^\[ \t]*$"匹配一個空白行。/\d{2}-\d{5}/"\d{2}-\d{5}"驗證一個識別碼是否由一個2位元字,一個連字號以及一個5位元字組成。/<(.*)>.*<
Time of Update: 2018-12-07
公司有個項目需要跟別的系統互連,新做的是utf-8編碼的,另一個是gb2312的,需要把utf-8編碼轉為gb2312。寫了下面的代碼: public string UTF8toGB2312(string str) { string utfStr = str; byte[] utfBytes = System.Text.Encoding.UTF8.GetBytes(utfStr); byte[] gbB
Time of Update: 2018-12-07
Code highlighting produced by Actipro CodeHighlighter
Time of Update: 2018-12-07
<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>New Page 1</title></head><body><script language="JavaScript"><!--function CloseWin(){var ua=navigator.userAgentv
Time of Update: 2018-12-07
String.Split 方法有6個重載函數: 程式碼1) public string[] Split(params char[] separator)2) public string[] Split(char[] separator, int count)3) public string[] Split(char[] separator, StringSplitOptions options)4) public string[] Split(string[] separator,
Time of Update: 2018-12-07
簡單介紹下它的用法:一.AjaxPro的使用1.在項目中添加引用,瀏覽找到AjaxPro.2.dll檔案2.在Web.config中的system.web裡面寫入以下代碼</configuration><system.web> <httpHandlers> <add verb="*" path="*.ashx" type="AjaxPro.AjaxHandlerFactory,AjaxPro.2"/>
Time of Update: 2018-12-07
轉載自:http://www.21ds.net/article/21/26299WINFORM中的ComboBox,我想當然的拿它和Web Control中的DropDownList來對比,所以我一直不知道Value在ComboBox是什嗎?ValueMember只能用來綁定,而selectedvalue也只能取來自資料庫綁定的值,我只能定義一個類來實現我手動增加ComboBox的Itempublic class ComboBoxItem { private string
Time of Update: 2018-12-07
drop table bb create table bb (id int,name varchar(8)) ---添加記錄 insert bb select 1,'a' union all select 2,'b' union all select 3,'c' union all select 4,'d' --建立觸發器 creat