ÓÃC#£¨C++£©Socketºǫ́±àд×Ô¼ºµÄIIS·þÎñÆ÷´úÌæIIS
±¾ÎÄ´¥¼°µ½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:ÕâЩ±êÇ©£¬×ª»¯ÎªÏàÓ¦µÄ±êÇ©£¨ÕâÀïÊÇ<input>±êÇ©£©£¬ÕâЩÔÚhtmlÀïÃæÊǷDZê×¼µÄ±êÇ©£¬ÊôÓÚiis¹æ¶¨µÄ±êÇ©£¬iisÓÐÕâ¸öÔðÈÎÈ¥½«ÕâЩ±êǩת»¯Îª±ê×¼µÄ±êÇ©·µ»Ø¸ø¿Í»§¡£
ÉÏÃæÕâЩÊÇ»ù´¡£¬ÏàÐźܶà±àд¹ýÍøÕ¾µÄÈ˶¼ÖªµÀÊÇÔõôһ»ØÊ£¬ÏÂÃæ»Øµ½ÕýÌâ¡£
ÏÂÃæÕâ¶Î´úÂë¿ÉÄÜ´ó¼Ò¾ÍºÜÉÙ½Ó´¥ÁË£º
GET /siteserver/mypage.youlike?h_username=myname HTTP/1.1
Accept: */*
Accept-Language: zh-cn
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152;
.NET CLR 3.5.30729)
Host: 127.0.0.1:45632
Content-Length: 93
Connection: Keep-Alive
Cache-Control: no-cache
ÆäʵÕâºÜ¼òµ¥£¬Õâ¾ÍÊÇ¿Í»§¶ËIE´ò¿ªÒ»¸öÍøÖ·http://127.0.0.1:45632/siteserver/mypage.youlike?h_username=myname£¬http://127.0.0.1:45632Õâ¸öÍøÕ¾µÄºǫ́ÊÕµ½µÄÈ«²¿ÐÒé´úÂë¡£
ÕâЩ×Ö·û´®Óû»ÐзûÏà¸ô¡£
ÆäÖÐ127.0.0.1:45632ÊÇÒ»¸ö±ê×¼µÄÕ¾µãµÄµØÖ·£¬127.0.0.1ÊǣɣУ¬45632ÊÇ·þÎñ¶Ë¼àÌýµÄ¶Ë¿Ú¡£
User-Ag
Ïà¹ØÎĵµ£º
ºÄ·ÑÁËÒ»ÏÂÎ磬Ñо¿ÁËÒ»ÏÂVCµÄÊý¾Ý¿â±à³Ì£¬Ð´ÁËÕâ¸ö²âÊÔ³ÌÐò¡£Ö÷ÒªµÄ¹¦ÄÜΪʵÏÖaccessÊý¾Ý¿âµÄÌí¼ÓÓëɾ³ý£¬Í¬Ê±¶¯Ì¬µÄ½«Êý¾Ý¿âÊý¾ÝÏÔʾÔÚflexgrid¿Ø¼þÖС£ÏÂÃæ°Ñ¹ý³Ì¼Ç¼ÏÂÀ´£¬ÒÔ±¸ºóÓá£
Ò»¡£ADO¼ò½é
ADOÌṩÁËÒ»×é·Ç³£¼òµ¥£¬½«Ò»°ãͨÓõÄÊý¾Ý·ÃÎÊϸ½Ú½øÐзâ×°µÄ¶ÔÏó¡£ÓÉÓÚODBCÊý¾ÝÔ´Ò²ÌṩÁËÒ»°ãµÄOLE DB Privide ......
ÔÚVisual Studio 2005Öд´½¨C³ÌÐòµÄ·½·¨Îª£º
1. File ->New Project -> Visual C++ -> Win32 -> Win32 Console Application,È»ºóÔÚÏÂÃæµÄNameÀ¸Ð´ÉÏProjectÃû³Æ,LocationÀ¸Ð´ÉÏÎļþµÄ´æ·Å·¾¶,µãOK°´Å¥½øÈëApplication Settings,ÔÚAddtional optionsÖÐÑ ......
CÓïÑÔ±ØÖª±Ø»á
Ö¸Õ룺
1.Ö¸ÕëÉùÃ÷ºóÒª¸³Öµ£¡·ñÔòÊÇ¿ÕÖ¸Õ룬¿É²»ÖªµÀÖ¸ÏòÁËÄÄÀï
ÀýÈ磺
void swap(int *a,int *b){
int *tmp;
*tmp=*a;
*a=*b;
*b=*tmp;
}
±¾À´ÊÇÏëÀûÓÃÉÏÃæµÄswapº¯ÊýʵÏÖÁ½¸öÊýµÄ»¥»»£¬µ«ÊÇ*tep=*a;Õâ¾ä»°ÊÇÓÐÎóµÄ ......
char c[] = "hello world" ·ÖÅä¾Ö²¿Êý×é
char* c = "hello world" ·ÖÅäÈ«¾ÖÊý×é È«¾ÖÇøÓòµÄÖµÊDz»ÄܽøÐÐÐ޸ĵÄ
1 ³£Á¿Ö¸Õ룡Èç int b, c; int * const a = &b;
±íʾaÊÇÒ»¸ö³£Á¿Ö¸ÕëËüÖ¸Ïò±äÁ¿bµÄÄÚ´æ¡£µ«ÊÇÒòΪÊdz£Á¿Ö¸ÕëËùÒÔ²»ÄÜÔÙÓÃaÖ¸ÏòÆäËû±äÁ¿£¬Èç a = &c; ´íÎ󣡿ÉÒÔÐÞ¸ÄÖ ......
1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º
¡¡¡¡´«ËͲÎÊý£º
response.write("£¼script£¾window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)£¼/script£¾")
¡¡¡¡½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string b = Request.QueryString( ......