c#´úÂëת»¯³ÉVB
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "Insert")
{
GridView1.DataSourceID = "";
GridView1.DataBind();
}
}
protected void DetailsView1_ItemInserted(object sender, DetailsViewInsertedEventArgs e)
{
GridView1.DataSourceID = "AccessDataSource1";
GridView1.DataBind();
}
Public Sub GridView1_RowCommand(ByVal sender As Object, ByVal e As GridViewCommandEventArgs)
If e.CommandName = "Insert" Then
GridView1.DataSourceID = ""
GridView1.DataBind()
End If
End Sub
Public Sub DetailsView1_ItemInserted(ByVal sender As Object, ByVal e As DetailsViewInsertedEventAr
Ïà¹ØÎÊ´ð£º
ÍøÉÏ¿´Á˺ܶ࣬ºÃÏñÕâÑùµ÷ÓúܺãºExcel.Application();
µ«ÊÇÐèÒªÒýÈëʲôÃüÃû¿Õ¼ä»òÕßdll²ÅÄÜÔËÐÐExcelÕâ¸öÀàÄØ£¿
Excel.dll
Excel.dllÔÚExcel°²×°³ÌÐòÏ£¬
using Microsoft.Office.Interop.Excel;
......
¾ßÌåÊÇÓÃtextbox½ÓÊÕÒ»ÌõÀ´×ÔɨÃèǹµÄÊý¾Ý£¬²¢ÏìÓ¦½ÓÊÕ£¬ÓÃtextbox multiline,ÄÜÏÔʾÿɨһÌõ¼Ç¼£¬¼Ç¼»á×Ô¶¯»»ÐУ¬ÊDz»Êǻسµ£¬²»ÊǺÜÈ·¶¨£¬ÓÃsingleline,½ÓÊÕÒ»Ìõ¼Ç¼ÎÞ·´Ó¦£¬ÓÃÍøÉÏһЩ·½·¨Èç"pressdown&qu ......
ÎÒ×î½üдÁËÒ»¸öc# socketµÄÎļþÉÏ´«ÏÂÔØµÄ³ÌÐò¡£¿ÉÊÇÓû§¸Ä³ÉÔÚlinuxÉÏÔËÐС£
²»ÖªµÀÓÐÄÇЩҪעÒâºÍÐ޸ĵĵط½£¿
Çë¸÷λ´óϺ´Í½Ì£¡
............
c#³ÌÐòÎÞ·¨ÔÚlinuxÉÏÔËÐÐ.Íâ½ç´«ËµÓÐÈËʵÏÖÁËlinuxÉϵÄÖ´Ð ......
C#ÈçºÎÅжÏÁ¬½Ósql serverÊý¾Ý¿â³É¹¦£¿
try
{
connection.connect()
return true;
}
catch()
{
return false;
}
Â¥Ö÷ºÜ׿±£¬¿ªÁ˼¸ÌùÁË¡£
ÒýÓÃ
try
{
connection.connect( ......
ÎÒÊÇÒ»¸öÐÂÊÖ£¬ÇëÎÊÔõôÑù½«Ò»¸öVBµÄÍøÒ³¸Ä³ÉC#µÄ£¿ÍøÕ¾µÄ½çÃæ£¬¹¦Äܶ¼²»ÐèÒª¸Ä±ä£¬Ö»ÐèÒª°Ñºǫ́´úÂë»»³ÉC#µÄ£¬µ«ÊÇÎÒÖ»ÓÐÒѱàÒëºÃµÄ½çÃæ´úÂ롣ʱ¼ä±È½Ï½ô£¬ÔõôÑùÓñȽϼòµ¥µÄ·½·¨ÊµÏÖ£¿Ð»Ð»£¡
vs2008²»ÊÇ×Ô´øÒ»¸ö ......