cmd.CommandText = "update detailesid set num=num+1 where id=" + id + " and detailesid= "+ RadioButtonList1.SelectedValue.ToString();
cmd.ExecuteNonQuery();
ÎÒ×öÁËÒ»¸öͶƱ³ÌÐò£¬Õâ¸öÊÇÔÚBUTTONÀïµÄ´úÂë
ÎÒÔËÐÐÒ»ÏÂ˵ÎÒ = ¸½½üÓдíÎó£¬ÎÒÏëÈôó¼Ò¿´¿´Õû¸ö¸üÐÂÓï¾ä¶ÔÂð£¿
......
asp.netÔõÑùÁ¬½ÓÊý¾Ý¿â°¡£¿»¹ÐèʹÓÃVB.NET±à³Ì£¿
¿´¿´ADO.NET°É£¬ÕâÊǺËÐÄ
ÔÚWeb.configÖÐдÁ¬½Ó×Ö·û´®£¬ÄãÔÚÀàÀïдҲÐÐ
ллÀ²£¬ÎһῴµÄ¡£
²»ÐèʹÓÃVB.NET±à³Ì£¬ÐèÒªADO.net
·½·¨Óкܶ࣬×Ô¼ºgoogleһϰÉ
ado.net
ado.net£¬Õâ¸öÒªÊì͸¡£
linq to sql? entity framework?
ÔÚÀàÀïÖ±½Óд£ ......
ÐÂÊÖÇó¾È. ÌåÁÂÇóÖªÖ®ÐÄ¡£¡£¡£Ð»Ð»£¡
asp ´úÂëÒ³Ã棺
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www. ......
ÎÒ×öÁËÒ»¸öÍøÕ¾·ÅÔÚ·þÎñÆ÷ÉÏ£¬Ç°¼¸Ì춼¿ÉÒÔ·ÃÎʲ¢ÇÒËٶȻ¹ÐУ¬Ôõôµ½½ñÌì·ÃÎÊËÙ¶ÈÌØÂý£¬µ½×îºÃ¶¼·ÃÎʲ»ÁËÀ²¡£Çë¸ßÊÖÖ¸½Ì
ÄÇÒ²Ö»ÄÜ˵·þÎñÆ÷µÄÎÊÌâ¡£
Èç¹û²»ÊÇÔÚ·þÎñÆ÷ÉÏ ËÙ¶ÈÔõôÑùÄØ
Ò²ÐíÊÇÄãµÄ·þÎñÆ÷µÄÎÊÌâ°É£¬»¹ÓоÍÊÇÍøÂçµÄÎÊÌâ¡£Õâ¸öÓÐÌ«¶àÖֵĿÉÄÜ£¬ÒªÊÇÓÐʱ¼äÄãÒ²¿ÉÒÔÓÅ»¯Ò»Ï³ÌÐò¡£
Ò²ÓпÉÄÜÊdz ......
select top 12 * from Product where [id] not in (select top 12 [id] from Product)
ÕâÑù¿ÉÒÔ·ÖÒ³£¬µ«ÊÇÎÒÔÚºóÃæÏë¼Ó¸öÌõ¼þ
select top 12 * from Product where [id] not in (select top 12 [id] from Product) where productid=34
·ÖÒ³¾ÍʧЧÁË
Êý¾ÝÈ«ÊÇÇ°12Ìõ
ÊÇÓÃʲô¿Ø¼þ·ÖÒ³ÏÔʾÊý¾Ý,ÓÐЩ¿Ø¼þ²»ÊÇ×Ô´ ......
asp.netÖÐAÁ´½Ó´«ÖÐÎÄÖµ£¬½ÓÊÕʱÂÒÂ룡
ÔÚÓÐЩµçÄÔÉÏÄÜÕý³£½ÓÊÕ£¬µ«ÓÐЩµçÄÔÉÏÈ´²»ÄÜÕý³£½ÓÊÕ£¬
ÇëÎʸ÷λÓÐûÓÐʲô·½·¨£¿
ÓÃsession£¬»òÕ߸ü¸Ä±àÂ룬
default.aspx
C# code:
this.Redirect("hello.aspx?text="+this.this.Server.HtmlEncode("ÄãºÃ"));
hello.as ......