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ÏÂÃ棬µ±Òª¸ù¾Ý²»Í¬µÄȨÏÞÏÔʾһЩ¹¦ÄÜ°´Å¥µÄ»°»áд³É
<%
if ȨÏÞ=1 then
%>
<input type="submit" name="Submit" value="Ìá½»" />
<%
end i ......
ÎÒÏëÒªÒ»¸öºÍqqÒ»ÑùµÄµ¯³ö¿ò£¬Äܹ»¹Ø±Õ£¬²»ÊÇ×Ô¶¯µÄ£¬¶øÊÇÊÖ¶¯µÄÄÇÖÖ£¬ÔÚµ¯³ö¿òÖÐÎÒÏë¼ÓÒ»¸öÊÓƵ£¬²»ÖªÓÐûÓÐÈË×ö¹ý°¡£¬ÔÚÏߵȰ¡£¬Ï£ÍûÓÐÈËÄܸøÎÒ·¢¸öʵÀý´úÂ룬ÔÚÏߵȣ¬
²»ÖªµÀÄãҪʲôЧ¹û£¬
²»¹ýÒ²¿Ï¶¨ÊÇ ......
ÏÖÔÚÓöµ½Õâôһ¸öÎÊÌ⣬´ÓFTPÉÏÏÂÔØÎļþ£¬ÆäÖÐÓÐÁ½¸ö·½Ê½£¬Ò»ÖÖÊÇÒ»¸öÎļþÒ»¸öÎļþµÄÏÂÔØ£¬
ÁíÍâÒ»¸öÊÇÈ«²¿ÏÂÔØ£¬Ò»¸öÒ»¸öÎļþµÄÏÂÔØÒѾʵÏÖÁË£¬µ«ÊǾÍÊÇÈ«²¿ÏÂÔصÄûÓÐʵÏÖ£¬
ÎÒÏëµÄ˼·ÊÇÏÂÔص½Îļþ·þÎñÆ÷ ......
ÏÖÔÚ×öÒ»¸öÍøÕ¾£¬ÓÃÁËĸ°æ£¬Óû§¿Ø¼þ£¬¶¼Óõ½ÁËscriptManager£¬¿ÉÊÇÄÚÈÝÒ³»¹ÒªÓÃscriptManager£¬¿´ÁËÏà¹Ø×ÊÁÏ£¬ËµscriptManagerProxy¿ÉÒÔ×÷ΪscriptManagerµÄ´úÀíʹÓã¬ÊÔÁËÏ£¬Ã»Óгɹ¦£¬ÌØ·¢´ËÌû£¬Çë¸÷λ°ï°ïæ£¬Ï ......