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
Ïà¹ØÎÊ´ð£º
ÏÖÔÚÓöµ½Õâôһ¸öÎÊÌ⣬´ÓFTPÉÏÏÂÔØÎļþ£¬ÆäÖÐÓÐÁ½¸ö·½Ê½£¬Ò»ÖÖÊÇÒ»¸öÎļþÒ»¸öÎļþµÄÏÂÔØ£¬
ÁíÍâÒ»¸öÊÇÈ«²¿ÏÂÔØ£¬Ò»¸öÒ»¸öÎļþµÄÏÂÔØÒѾʵÏÖÁË£¬µ«ÊǾÍÊÇÈ«²¿ÏÂÔØµÄûÓÐʵÏÖ£¬
ÎÒÏëµÄ˼·ÊÇÏÂÔØµ½Îļþ·þÎñÆ÷ ......
RT```
ÏÖÔÚÓÐÒ»¸öÐÂÏîĿҪ×ö, ÓÃÄĸö°æ±¾µÄAsp.Net À´¿ª·¢ºÃÄØ? ¸øµãÒâ¼û.
ÒÔǰֻÓùýAsp.Net 2.0 ºÍ Sql 2000
лл!
.net2.0 + sql05
ÓÃvs2008+sql server 2005
vs2008Äã¿ÉÒÔÑ ......
ÔÚÏÂÓÃvb±àдÁËÒ»¸öµ÷ÓÃÌõÂë´òÓ¡»ú¶¯Ì¬Á´½Ó¿â´òÓ¡ÌõÂëµÄactivex£º
<OBJECT ID="BarcodePrint"
CLASSID="CLSID:398953F3-F9CD-4BD5-90DB-53A327972617"
CODEBASE="BarcodeCom. ......
·þÎñÆ÷·ÅÖÃÔÚÄÚÍø¡£ÍøÕ¾Ö»ÄÜÊÇͨ¹ýÄÚ²¿ÍøÂç·ÃÎʵġ£ÔõÑù»ñÈ¡¿Í»§¶Ë¼ÆËã»úµÄÓòºÍ¼ÆËã»úÃû£¿
RT£¬Ð»Ð»ÁË¡£
Request.UserHostName
Request.UserHostAddress
Õâ¸öÊÔ¹ýÁ˲»ÐС£
ÈçºÎÔÚ.NETÖлñÈ¡µçÄÔÃû£ ......
ÎÒÓÃÏÂÃæµÄ·½Ê½µ¯³ö¶Ô»°¿ò
RegisterStartupScript("js", " <script>alert('¶Ô²»ÆðÄúûÓиÃȨÏÞ') </script>");
È»ºóÎÒÔÙË¢ÐÂÒ³Ãæ£¬Ò³Ãæ»áÌáʾ£º¡°²»ÖØÐ·¢ËÍÐÅÏ¢ ......