Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ASP.NET ¸üÐÂÓï¾ä

  cmd.CommandText = "update detailesid set num=num+1 where id=" + id + " and detailesid= "+ RadioButtonList1.SelectedValue.ToString();
cmd.ExecuteNonQuery();
ÎÒ×öÁËÒ»¸öͶƱ³ÌÐò£¬Õâ¸öÊÇÔÚBUTTONÀïµÄ´úÂë
ÎÒÔËÐÐÒ»ÏÂ˵ÎÒ = ¸½½üÓдíÎó£¬ÎÒÏëÈôó¼Ò¿´¿´Õû¸ö¸üÐÂÓï¾ä¶ÔÂð£¿
ÏÈÕÒ¸ö²éѯ·ÖÎöÆ÷ÔËÐÐÒ»´Î,û´íµÄ»°¾ÍÊÇ ÖµµÄÎÊÌâÁË.

ÏÈÔÚsqlÀïÃæÔËÐÐÒ»´Î£¡£¡

Ìí¼Ó¼àÊÓ£¬×·×Ù³öÕâ¾äsql  ÄãÔÚ²éѯ·ÖÎöÆ÷ÀïÃæÔËÐп´¿´»á²»»áÓÐÎÊÌâ

idÖµÊÇ·ñÕýÈ·
string sql="update detailesid set num=num+1 where id=" + id + " and detailesid="+ RadioButtonList1.SelectedValue.ToString();
µ÷ÊÔ¿´¿´ÊÇ·ñÕýÈ·
cmd.CommandText = "update detailesid set num=num+1 where id=" + id + " and detailesid="+ RadioButtonList1.SelectedValue.ToString();



idºÍdetailesidµÄÀàÐÍ,ÊÇ·ñÐèÒª¼Óµ¥ÒýºÅ

5Â¥Õý½â

"update detailesid set num=num+1 where id=" + id + " and detailesid= "+ RadioButtonList1.SelectedValue.ToString();
Õâ¸öÓ¦¸ÃÊDZíÃû°É,ÊDz»ÊÇŪ´íÁË, ºóÃæÒ²ÏàͬµÄ?

cmd.CommandText = "update detailesid set num=num+1 where id=" + id + " and detailesid= "+ RadioButtonList1.SelectedValue.ToString();

µ÷ÊÔ¿´Ò»ÏÂÕâ¸öÓï¾ä,Ó¦¸ÃÊÇÕâÀïµÄÎÊÌâ


¸ü¶àµÄÊÇҪעÒâǰºó¿Õ¸ñµÄÎÊÌâ

cmd.CommandText = "update detailesid set num=num+1 where id=" + id + " and detailesid= "+ RadioButtonL


Ïà¹ØÎÊ´ð£º

ASP.NET ÔÚ FTPÉÏÄÜѹËõÂð£¿

ÏÖÔÚÓöµ½Õâôһ¸öÎÊÌ⣬´ÓFTPÉÏÏÂÔØÎļþ£¬ÆäÖÐÓÐÁ½¸ö·½Ê½£¬Ò»ÖÖÊÇÒ»¸öÎļþÒ»¸öÎļþµÄÏÂÔØ£¬
ÁíÍâÒ»¸öÊÇÈ«²¿ÏÂÔØ£¬Ò»¸öÒ»¸öÎļþµÄÏÂÔØÒѾ­ÊµÏÖÁË£¬µ«ÊǾÍÊÇÈ«²¿ÏÂÔØµÄûÓÐʵÏÖ£¬
ÎÒÏëµÄ˼·ÊÇÏÂÔØµ½Îļþ·þÎñÆ÷ ......

´ó¼ÒʹÓÃÄĸö°æ±¾µÄAsp.Net ºÍ Sql

RT```


ÏÖÔÚÓÐÒ»¸öÐÂÏîĿҪ×ö, ÓÃÄĸö°æ±¾µÄAsp.Net À´¿ª·¢ºÃÄØ? ¸øµãÒâ¼û.

ÒÔǰֻÓùýAsp.Net 2.0 ºÍ Sql 2000

лл!
.net2.0 + sql05

ÓÃvs2008+sql server 2005

vs2008Äã¿ÉÒÔÑ ......

asp.netÖе÷ÓÃactivexµÄº¯Êý³ö´í

ÔÚÏÂÓÃvb±àдÁËÒ»¸öµ÷ÓÃÌõÂë´òÓ¡»ú¶¯Ì¬Á´½Ó¿â´òÓ¡ÌõÂëµÄactivex£º
<OBJECT ID="BarcodePrint"
CLASSID="CLSID:398953F3-F9CD-4BD5-90DB-53A327972617"
CODEBASE="BarcodeCom. ......

asp.netÔõÑù»ñÈ¡ÄÚÍø¿Í»§¶ËÓòÃûºÍ¼ÆËã»úÃû£¿

·þÎñÆ÷·ÅÖÃÔÚÄÚÍø¡£ÍøÕ¾Ö»ÄÜÊÇͨ¹ýÄÚ²¿ÍøÂç·ÃÎʵġ£ÔõÑù»ñÈ¡¿Í»§¶Ë¼ÆËã»úµÄÓòºÍ¼ÆËã»úÃû£¿

RT£¬Ð»Ð»ÁË¡£
Request.UserHostName
Request.UserHostAddress

Õâ¸öÊÔ¹ýÁ˲»ÐС£

ÈçºÎÔÚ.NETÖлñÈ¡µçÄÔÃû£ ......

asp.netÍøÕ¾ÎÊÌâÇë½Ì

ÎÒÓÃÏÂÃæµÄ·½Ê½µ¯³ö¶Ô»°¿ò
RegisterStartupScript("js", " <script>alert('¶Ô²»ÆðÄúûÓиÃȨÏÞ') </script>");

È»ºóÎÒÔÙË¢ÐÂÒ³Ãæ£¬Ò³Ãæ»áÌáʾ£º¡°²»ÖØÐ·¢ËÍÐÅÏ¢ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ