ÐòºÅ
Àà±ð
SQLServer
C Sharp
±¸×¢
1
ÕûÊý
bit
Boolean
Trueת»»Îª1Falseת»»Îª0
2
tinyint
Byte
C Sharp Êý¾ÝÀàÐͶ¼Î»ÓÚSystemÃüÃû¿Õ¼ä
3
smallint
Int16
4
int
Int32
5
bigint
Int64
6
smallmoney
Decimal
7
money
Decimal
8
numeric
Decimal
9
decimal
Decimal
10
¸¡µãÊý
float
Double
11
real
Single
12
ÈÕÆÚºÍʱ¼ä
smalldatetime
DateTime
13
datetime
DateTime
14
timestamp
DateTime
15
×Ö·û´®
char
String
16
text
String
17
varchar
String
18
nchar
String
19
ntext
String
20
nvarchar
String
21
¶þ½øÖÆÊý¾Ý
¡¡
¡¡
binary
Byte[]
22
varbinary
Byte[]
23
image
Byte[]
24
ÆäËû
uniqueidentifier
Guid
25
Variant
Object
PS.±¾À´´òËãתÔØTrackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=95675(SQL SERVERÓëC#ÖÐÊý¾ÝÀàÐ͵ĶÔÓ¦¹Øϵ) ,µ«¾õµÃ×÷ÕßÒÔ´úÂëµÄ·½Ê½Ð´³öÀ´,¿´ÆðÀ´²»ÊÇÄÇôֱ¹Û,²éÕÒÒ²²»·½±ã.ËùÒԲο¼ÁË×÷ÕßµÄÎÄÕºÍSQLServer05µÄ°ïÖúÎĵµÖÆ×÷ÁËÒÔÉÏÕâ¸ö±í¸ñ.
Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=1288946
/ ......
ÓÃC#²¥·ÅÒôƵºÍFlash
WinFormÖÐÈçºÎ²¥·ÅÉùÒôÓëFlash¶¯»
×¢Ò⣺СÀ¨ºÅÄÚµÄÊÇ°´Å¥µÄÆäËü·ÒëÃû³Æ£¬²»Í¬°æ±¾µÄÒëÃûÊÇÓÐÇø±ðµÄ¡£
Ò»¡¢ÔÚVC#²¥·ÅÉùÒô
н¨Ò»¸öVC#µÄWindows Form¹¤³Ì(WindowsÓ¦ÓóÌÐò)£¬²¢ÇÒ¶¨ÒåÁ½¸ö²Ëµ¥°´Å¥£¨menuItem1,menuItem2£©¡£
Ñ¡Ôñ²Ëµ¥Öеē¹¤¾ß”Öеē×Ô¶¨Ò幤¾ßÏä(Ìí¼Ó/ÒƳý¹¤¾ßÏäÏî)”£¬ÔÚ×Ô¶¨Ò幤¾ßÏäµÄ´°¿ÚÖУ¬µã»÷Õ¹¿ª“COM ×é¼þ”ÏѡÖГWindow Media Player”Ñ¡Ïȷ¶¨ºóÔÚ“¹¤¾ßÏä”Öбã»á³öÏÖ“Windows Media Player”ÕâÒ»ÏȻºóÔÙ½«ÆäÍÏÖÁFormÉÏ£¬µ÷Õû´óС£¬ÏµÍ³ÔÚ“ÒýÓÔÖÐ×Ô¶¯¼ÓÈëÁ˶ԴËdllµÄÒýÓã¬AxMediaPlayer¾ÍÊÇÎÒÃÇʹÓõÄNamespaceÓëclass¡£
ÔÚÊôÐÔÀ¸ÖÐÉèÖúô˿ؼþµÄһЩÊôÐÔ£¬ÎªÁË·½±ã£¬ÕâÀïÎÒ°ÑAutoStartÉèÖóÉΪtrue£¨ÆäʵĬÈÏÊÇtrue£©£¬Ö»ÒªFileName±»ÉèÖÃ(´ò¿ªÁËÎļþ)£¬ÔòÎļþ½«»á×Ô¶¯²¥·Å¡£ÍêÕû´úÂëÈçÏ£º
private void menuItem1_Click(object sender, System.EventArgs e)
{ OpenFileDialog ofDialog = new OpenFileDialog();
ofDialog.AddExtension = ......
Ò»¡¢Ìí¼ÓÒýÓÃ
Ìí¼Ócom×é¼þ£¨Microsoft Office 11.0 Object Library £©ÃüÃû¿Õ¼äΪMicrosoft.Office.Interop.Excel
Ìí¼ÓExcel.exeÒýÓÃĬÈÏ·¾¶ÎªC:\Program Files\Microsoft Office\OFFICE11\Excel.exe
¶þ¡¢Excel¿ØÖÆÀà
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using Excel = Microsoft.Office.Interop.Excel;
namespace ExcelOperation
{
public class ExcelControl
{
private Excel.Application m_objExcel = null;
private Excel.Workbooks m_objBooks = null;
private Excel._Workbook m_objBook = null;
private Excel.Sheets m_objSheets = null;
private Excel._Worksheet m_objSheet = null;
private Excel.Range m_objRange = nu ......
1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º
¡¡¡¡´«ËͲÎÊý£º
response.write("£¼script£¾window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)£¼/script£¾")
¡¡¡¡½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string b = Request.QueryString("id1");
¡¡¡¡2.Ϊ°´Å¥Ìí¼Ó¶Ô»°¿ò
Button1.Attributes.Add("onclick","return confirm(’È·ÈÏ?’)");
button.attributes.add("onclick","if(confirm(’are you sure...?’)){return true;}else{return false;}")
¡¡¡¡3.ɾ³ý±í¸ñÑ¡¶¨¼Ç¼
int intEmpID = (int)MyDataGrid.DataKeys[e.Item.ItemIndex];
string deleteCmd = "Delete from Employee where emp_id = " + intEmpID.ToString()
¡¡¡¡4.ɾ³ý±í¸ñ¼Ç¼¾¯¸æ
private void DataGrid_ItemCreated(Object sender,DataGridItemEventArgs e)
{
¡¡switch(e.Item.ItemType)
¡¡{
¡¡¡¡case ListItemType.Item :
¡¡¡¡case ListItemType. ......
1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º
¡¡¡¡´«ËͲÎÊý£º
response.write("£¼script£¾window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)£¼/script£¾")
¡¡¡¡½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string b = Request.QueryString("id1");
¡¡¡¡2.Ϊ°´Å¥Ìí¼Ó¶Ô»°¿ò
Button1.Attributes.Add("onclick","return confirm(’È·ÈÏ?’)");
button.attributes.add("onclick","if(confirm(’are you sure...?’)){return true;}else{return false;}")
¡¡¡¡3.ɾ³ý±í¸ñÑ¡¶¨¼Ç¼
int intEmpID = (int)MyDataGrid.DataKeys[e.Item.ItemIndex];
string deleteCmd = "Delete from Employee where emp_id = " + intEmpID.ToString()
¡¡¡¡4.ɾ³ý±í¸ñ¼Ç¼¾¯¸æ
private void DataGrid_ItemCreated(Object sender,DataGridItemEventArgs e)
{
¡¡switch(e.Item.ItemType)
¡¡{
¡¡¡¡case ListItemType.Item :
¡¡¡¡case ListItemType. ......
±¾ÎÄ´¥¼°µ½Socket TCP/IP±à³Ì·½ÃæµÄ֪ʶ£¬ÆäʵÕâÊǺܼòµ¥µÄÄÚÈÝ£¬´ó¼Ò¿´²»Ã÷µÄµØ·½´ó¿ÉÒÔÏÈÍù϶Á£¬ÒÔºóÔÙ¿´Ò»±é£¬¿ÉÄÜ»á¾õµÃºÜ¼òµ¥¡£
ºÜ¶àÈËдÍøÕ¾ÓùßÁËIISºÍTomcatÕâЩ¸ß¼¶µÄºǫ́À´×öÍøÕ¾ºǫ́·þÎñ£¬È»¶ø£¬ÔÚÕâЩºǫ́»¹Ã»ÓÐÎÊÊÀ֮ǰ£¬ÈËÃÇÊÇÔõô±àдÍøÕ¾µÄÄØ£¿ËûÃǵײ㹲ͬ×ñÊصÄ×¼ÔòºÍ±ê×¼ÓÖÊÇʲôÄØ£¿
Õâ¾ÍÊÇhttpÐÒéºÍhtml¡¢js¡¢css±ê×¼¡£ÕâЩ¶¼Êǹú¼ÊͳһµÄ±ê×¼£¬ºÍ.net¡¢java¡¢phpÕâЩÓïÑÔÍêȫûÓйØϵµÄ¡£±ÈÀýÈçÏÂÃæÒ»¶Î´úÂ룺
<html>
<body>
<form runat="server" id="form1">
<%
string str_response="hello world";
........................................
Response.Write(str_response);
%>
<asp:Button ID="bn_1" runat="Server" Text="µã»÷"/>
</form>
</body>
</html>
³¤³¤µÄÒ»¶Î´úÂë×îÖջᱻ½âÎö³ÉÏÂÃæÕâÑù
<html>
<body>
<form id="form1" action="">
hello world
<input type="submit" value="µã»÷" name="bn_1"/>
</form>
</body>
</html>
IIS°ïÖúÎÒÃÇ£¬½«<%%>ÀïÃæµÄÄÚÈÝת»¯³ÉÒªÊä³öµÄÄÚÈÝ£¬Í¬Ê±½«<asp:ÕâÐ ......
±¾ÎÄ´¥¼°µ½Socket TCP/IP±à³Ì·½ÃæµÄ֪ʶ£¬ÆäʵÕâÊǺܼòµ¥µÄÄÚÈÝ£¬´ó¼Ò¿´²»Ã÷µÄµØ·½´ó¿ÉÒÔÏÈÍù϶Á£¬ÒÔºóÔÙ¿´Ò»±é£¬¿ÉÄÜ»á¾õµÃºÜ¼òµ¥¡£
ºÜ¶àÈËдÍøÕ¾ÓùßÁËIISºÍTomcatÕâЩ¸ß¼¶µÄºǫ́À´×öÍøÕ¾ºǫ́·þÎñ£¬È»¶ø£¬ÔÚÕâЩºǫ́»¹Ã»ÓÐÎÊÊÀ֮ǰ£¬ÈËÃÇÊÇÔõô±àдÍøÕ¾µÄÄØ£¿ËûÃǵײ㹲ͬ×ñÊصÄ×¼ÔòºÍ±ê×¼ÓÖÊÇʲôÄØ£¿
Õâ¾ÍÊÇhttpÐÒéºÍhtml¡¢js¡¢css±ê×¼¡£ÕâЩ¶¼Êǹú¼ÊͳһµÄ±ê×¼£¬ºÍ.net¡¢java¡¢phpÕâЩÓïÑÔÍêȫûÓйØϵµÄ¡£±ÈÀýÈçÏÂÃæÒ»¶Î´úÂ룺
<html>
<body>
<form runat="server" id="form1">
<%
string str_response="hello world";
........................................
Response.Write(str_response);
%>
<asp:Button ID="bn_1" runat="Server" Text="µã»÷"/>
</form>
</body>
</html>
³¤³¤µÄÒ»¶Î´úÂë×îÖջᱻ½âÎö³ÉÏÂÃæÕâÑù
<html>
<body>
<form id="form1" action="">
hello world
<input type="submit" value="µã»÷" name="bn_1"/>
</form>
</body>
</html>
IIS°ïÖúÎÒÃÇ£¬½«<%%>ÀïÃæµÄÄÚÈÝת»¯³ÉÒªÊä³öµÄÄÚÈÝ£¬Í¬Ê±½«<asp:ÕâÐ ......
±¾ÎÄ´¥¼°µ½Socket TCP/IP±à³Ì·½ÃæµÄ֪ʶ£¬ÆäʵÕâÊǺܼòµ¥µÄÄÚÈÝ£¬´ó¼Ò¿´²»Ã÷µÄµØ·½´ó¿ÉÒÔÏÈÍù϶Á£¬ÒÔºóÔÙ¿´Ò»±é£¬¿ÉÄÜ»á¾õµÃºÜ¼òµ¥¡£
ºÜ¶àÈËдÍøÕ¾ÓùßÁËIISºÍTomcatÕâЩ¸ß¼¶µÄºǫ́À´×öÍøÕ¾ºǫ́·þÎñ£¬È»¶ø£¬ÔÚÕâЩºǫ́»¹Ã»ÓÐÎÊÊÀ֮ǰ£¬ÈËÃÇÊÇÔõô±àдÍøÕ¾µÄÄØ£¿ËûÃǵײ㹲ͬ×ñÊصÄ×¼ÔòºÍ±ê×¼ÓÖÊÇʲôÄØ£¿
Õâ¾ÍÊÇhttpÐÒéºÍhtml¡¢js¡¢css±ê×¼¡£ÕâЩ¶¼Êǹú¼ÊͳһµÄ±ê×¼£¬ºÍ.net¡¢java¡¢phpÕâЩÓïÑÔÍêȫûÓйØϵµÄ¡£±ÈÀýÈçÏÂÃæÒ»¶Î´úÂ룺
<html>
<body>
<form runat="server" id="form1">
<%
string str_response="hello world";
........................................
Response.Write(str_response);
%>
<asp:Button ID="bn_1" runat="Server" Text="µã»÷"/>
</form>
</body>
</html>
³¤³¤µÄÒ»¶Î´úÂë×îÖջᱻ½âÎö³ÉÏÂÃæÕâÑù
<html>
<body>
<form id="form1" action="">
hello world
<input type="submit" value="µã»÷" name="bn_1"/>
</form>
</body>
</html>
IIS°ïÖúÎÒÃÇ£¬½«<%%>ÀïÃæµÄÄÚÈÝת»¯³ÉÒªÊä³öµÄÄÚÈÝ£¬Í¬Ê±½«<asp:ÕâÐ ......
ÎÒʼÖÕÈÏΪ£¬¶ÔÒ»¸ö³õѧÕßÀ´Ëµ£¬IT½çµÄ¼¼Êõ·ç³±ÊDz»¿ÉÒÔ×·¸ÏµÄ£¬¶øÇÒҲûÓÐÄÜÁ¦È¥×·
¸Ï¡£ÎÒʱ³£¿´¼û×Ô¼ºµÄDDMMÃǰѿα¾ÈÓÁË£¬È¥ÂôЩ¼Û¸ñ²»·ÆµÄÖîÈçC#, VB.Net ÕâÑùµÄ´ó²¿
Í·£¬ÕâÈÃÎҸе½·Ç³£Í´ÐÄ¡£¶øÐí¶à¸ã²»ÇåÖ¸ÕëÊÇÕ¦»ØʵÄBBSÕ¾ÓÑü·ÉÉ«ÎèµÄÌÖÂÛC#ÀïÃæ¿É
ÒÔ²»ÓÃÖ¸ÕëµÈµÈÔòÈÃÎÒ¾õµÃºÃЦ¡£C#¾ÍÏóµ±ÄêµÄASPÒ»Ñù£¬“ºöÈçÒ»Ò¹´º·çÀ´£¬Ç§Ê÷ÍòÊ÷Àæ
»¨¿ª”£¬½á¹ûÐí¶àѧУµÄÐÅϢѧԺ³ÉÁË“Web ѧԺ”¡£96,97¼¶µÄ²»ÉÙ´óѧÉú¶¼È¥×öWeb ÁË
¡£µ±È»ÎÒûÓÐÈκÎÆçÊÓijһÐÐÒµµÄÒâʶ¡£ÎÒÖ»ÊǾõµÃÈç¹ûËûÃÇ°Ñ×·¸ÏÕâЩʱ÷Ö¼¼ÊõµÄʱ¼ä
¶à»¨Ò»µãÔÚ»ù´¡µÄ¿Î³ÌÉÏÓ¦¸ÃÊÇ¿ÉÒÔ×ߵøüÔ¶µÄ¡£
¼¸¸öÎóÇø
³õѧÕ߶ÔC#·ç³±µÄ×·¸ÏÆäʵҲֻÊÇѧϰ¹ý³ÌÖо³£Óöµ½µÄ¼¸¸öÎóÇøÖ®Ò»¡£ÎÒ½«ÓÃһЩʵ¼Ê
µÄÀý×ÓÀ´ËµÃ÷ÕâЩÏÖÏó£¬Äã¿ÉÒÔ°´²¿¾Í°àµÄ¿´¿´×Ô¼ºÊDz»ÊÇÊôÓÚÆäÖеÄÒ»ÖÖ»òÕß¼¸ÖÖ£º
ÈÏΪ¼ÆËã»ú¼¼ÊõµÈÓÚ±à³Ì¼¼Êõ:
ÓÐЩÈ˼´Ê¹Ã»ÓÐÕâ¸öÏë·¨£¬ÔÚDZÒâʶÖÐÒ²ÓÐÕâÑùµÄ³å¶¯¡£ÈÃÎÒÆæ¹ÖµÄÊÇ£¬Ðí¶àÐÅϢѧԺµÄ
ѧÉúÒ²ÓÐÕâÑùµÄÄîÍ·¡£ÈÏΪ¼ÆËã»úרҵ¾ÍÊDZà³Ìרҵ£¬Óë±à³ÌÎ޹صģ¬»òÕß²»Ì«Ïà¹ØµÄ¿Î
³ÌËûͳͳ¶¼²»¹Ü£¬¼«¶ËµÄѧÉúÖ»ÒªÊéÉÏû´ø“±à³Ì”Á½¸ö×ÖËû¾Í²»¿´¡£
......