asp.net
asp.netÔõÑùÁ¬½ÓÊý¾Ý¿â°¡£¿»¹ÐèʹÓÃVB.NET±à³Ì£¿
¿´¿´ADO.NET°É£¬ÕâÊǺËÐÄ
ÔÚWeb.configÖÐдÁ¬½Ó×Ö·û´®£¬ÄãÔÚÀàÀïдҲÐÐ
ллÀ²£¬ÎһῴµÄ¡£
²»ÐèʹÓÃVB.NET±à³Ì£¬ÐèÒªADO.net
·½·¨Óкܶ࣬×Ô¼ºgoogleһϰÉ
ado.net
ado.net£¬Õâ¸öÒªÊì͸¡£
linq to sql? entity framework?
ÔÚÀàÀïÖ±½Óд£¿
Ö§³ÖÒ»ÏÂ
²éÏ ADO.NET ¾ÍÖªµÀÀ²£¬Í¨³£Á¬½Ó×Ö·û´®Ð´ÔÚ Web.config Àï
ÔÚweb.configÀïÃæ»òÕß×Ô¼ºÐ´µÄÀàÀïÃæд¶¼¿ÉÒÔµÄ
Ïà¹ØÎÊ´ð£º
aspÏÂÃ棬µ±Òª¸ù¾Ý²»Í¬µÄȨÏÞÏÔʾһЩ¹¦ÄÜ°´Å¥µÄ»°»áд³É
<%
if ȨÏÞ=1 then
%>
<input type="submit" name="Submit" value="Ìá½»" />
<%
end i ......
ÎÒÏëÒªÒ»¸öºÍqqÒ»ÑùµÄµ¯³ö¿ò£¬Äܹ»¹Ø±Õ£¬²»ÊÇ×Ô¶¯µÄ£¬¶øÊÇÊÖ¶¯µÄÄÇÖÖ£¬ÔÚµ¯³ö¿òÖÐÎÒÏë¼ÓÒ»¸öÊÓƵ£¬²»ÖªÓÐûÓÐÈË×ö¹ý°¡£¬ÔÚÏߵȰ¡£¬Ï£ÍûÓÐÈËÄܸøÎÒ·¢¸öʵÀý´úÂ룬ÔÚÏߵȣ¬
²»ÖªµÀÄãҪʲôЧ¹û£¬
²»¹ýÒ²¿Ï¶¨ÊÇ ......
ÎÒÓÃC#±àasp.netÍøÒ³¡£ÔÚÒ»¸ö°´Å¥button1ÖУ¬ÓÐÒ»¶Î´úÂëÔËÐÐʱ¼ä½Ï³¤£¬ÓÚÊÇÎÒÏëÔÚ°´Å¥°´ÏÂÖ®ºó£¬ÓÃÒ»¸ölabel1À´ÏÔʾһС¶Î×Ö·û£ºlabel1.text="ÕýÔÚ²éѯÖУ¬ÇëÉÔµÈ..."£¬È»ºóÔÚbutton1´úÂëÖ´ÐеÄ×îºóÒ»Ðдú ......
ÐÂÈËÒ»¸ö£¬²»¶®£¬Ï£Íû´ó¼Ò¶à¶àÖ¸µã
ÎÒËæÒâн¨Ò»¸öÍøÕ¾£¨2.0ºÍ3.5µÄ¶¼ÊÔ¹ý£©£¬Ö»·ÅÉÏÒ»¸ö¿Ø¼þ£¬È»ºó¾ÍÖ±½ÓÔËÐÐÁË£¬ÂíÉϾÍÌø³öÒ»¸ö³ö´íµÄÒ³Ã棬´ó¸ÅÊÇ˵
¡°/WebSite1¡±Ó¦ÓóÌÐòÖеķþÎñÆ÷´íÎó¡£
--- ......
cmd.CommandText = "update detailesid set num=num+1 where id=" + id + " and detailesid= "+ RadioButtonList1.SelectedValue.ToString();
cmd.ExecuteNonQuery();
ÎÒ×öÁËÒ»¸ ......