原创 Container.DataItem幾種方式及用法

靈活的運用數據綁定操作         綁定到簡單屬性:<%#UserName%>         綁定到集合:<asp:ListBox id="ListBox1" datasource='<%# myArray%>' runat="s

原创 select 1 from的淺析

今天看到項目代碼裏有這條語句,不懂select 1 from XXXXXXX裏的1是何意,查了一番才知道: 1、select 1 from mytable;與select anycol(目的表集合中的任意一行) from mytable;

原创 在sql server中實現查找一個月中有多少星期天

首先用dateadd()獲得該月的第一天(from_date)和最後一天(to_date),再用datepart()遞增比較from_date是否爲星期天,並用@sun記錄星期天的個數。 代碼: declare @yr int decla

原创 T-SQL常用語法

一、批處理: <span style="font-size:12px;">SELECT * FROM Students SELECT * FROM Student_course UPDATE Student_course SET

原创 div中id與class的區別

class是設置標籤的類。 id是設置標籤的標識。        class屬性用於指定元素屬於何種樣式的類。 如樣式表可以加入: .baobao { color: lime; background: #ff80c0 }  使用方法:c

原创 在網頁中實現圖片播放

<html> <head> <title>圖片播放</title> </head> <body> <script type="text/javascript"> var $$ = function (id) { return "s

原创 Sql存儲過程的簡單實例

例一:     銀行存款表(bankMoney)的內容如下 Id userID Sex Money 001 Zhangsan 男 30 002 Wangwu 男 50 003 Zha

原创 string.format總結

字符串的數字格式 stringstr1 =string.Format("{0:N1}",56789);               //result: 56,789.0 stringstr2 =string.Format("{0:N2}

原创 js實現網頁提示框的彈出

<html> <head> <script type="text/javascript"> function display_alert() { alert("I am an alert box!!") } </script>

原创 Literal控件與Label控件的對比

1、Literal的一般用法,與Label對比 MSDN上的解釋: 使用 System.Web.UI.WebControls.Literal 控件在網頁上保留顯示文本的位置。Literal 控件與 Label 控件類似,但 Literal

原创 MySQL創建事件

DELIMITER // CREATE EVENT fill_NUll_in_evalmanager  ON SCHEDULE EVERY 1 DAY STARTS '2019-12-18 05:58:00'  ON COMPLETION

原创 在臨時表中插入字段的方法

方法一:            select cast(0 as int) as order_count,b.area_name,.............. into #tbl   方法二: alter table #tbl add

原创 Get,Post及異步提交的方法描述

HTMLPage1.htm: <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <script type="text/javascript

原创 C#獲取當前日期時間

  //獲取日期+時間DateTime.Now.ToString(); // 2008-9-4 20:02:10 DateTime.Now.ToLocalTime().ToString(); // 2008-9-4 20:12:12 //

原创 我的第一個C#程序:從多個文本文件中讀取數據到SqlServer並實現增刪改查

//main.csusing System; using System.Collections.Generic; using System.ComponentModel; using System.Data;