asp.net(c#) Ë®ÏÉ»¨Êý
Ë®ÏÉ»¨Êý£ºÒ»¸öÈýλÕûÊý¸÷λÊý×ÖµÄÁ¢·½ºÍµÈÓÚ¸ÃÊý±¾Éí¾Í³Æ¸ÃÊýΪˮÏÉ»¨Êý£¬Ë®ÏÉ»¨Êý¹²ÓÐ4¸ö£¬·Ö±ðΪ£º153¡¢370¡¢371¡¢407( ÀýÈ磺1^3 + 5^3 + 3^3 = 153 )¡£ÎÒдµÄ´úÂëÈçÏ£¬ÄãÓÐÆäËûµÄʵÏÖ´úÂëÒ²¿ÉÒÔ·¢±íÆÀÂÛ¡£
int i, m,n,k;
for (i = 100; i < 1000; i++)
{
//È¡µÃ°ÙλÊý
m = i / 100;
//È¡µÃʮλÊý£¬ÕâÀïÒ²¿ÉÒÔÓÃn = (i%100)/10;
n = i/10%10;
//È¡µÃ¸öλÊý
k = i % 10;
//´òÓ¡Êä³öË®ÏÉ»¨Êý
if (m * m * m + n * n * n + k * k * k == i)
Response.Write(i + "<br />");
}
Ïà¹ØÎĵµ£º
ViewResult:Ò»°ã³ÊÏÖij¸öaspxÎļþ£¬ÓÉView·½·¨·µ»Ø¡£
RedirectToResult:ʹä¯ÀÀÆ÷ÖØ¶¨Ïò£¬ÓÉRedirect·½·¨·µ»Ø¡£
RedirectToRouteResult:Ö±½Ó½»¸øÏÂÒ»¸öAction£¬ÓÉRedirectToAction·½·¨·µ»Ø¡£ ......
·ÖÒ³´æ´¢¹ý³ÌÈçÏ´úÂëPages.sql£º
CREATE PROCEDURE Pages
@tblName varchar(255), -- ±íÃû
@strGetFields varchar(1000) = '*', -- ÐèÒª·µ»ØµÄÁÐ
@fldName varchar(255)='', -- ÅÅÐòµÄ×Ö¶ÎÃû
@pageSize int = 10, -- Ò³³ß´ç
@pageIndex int = 1, -- Ò³Âë
@doCount ......
ʲôÊÇÓû§¿Ø¼þ£¨User Control£©£¿
Óû§¿Ø¼þÆäʵ¾ÍÊÇÒ»ÖÖ×Ô¶¨ÒåµÄ×éºÏ¿Ø¼þ£¬Í¨³£ÓÉϵͳÌṩµÄ¿ÉÊÓ»¯¿Ø¼þ×éºÏ¶ø³É£¬
Óû§¿Ø¼þÖв»½ö¿ÉÒÔ¶¨ÒåÏÔÊ¾Ò³Ãæ£¬»¹¿ÉÒÔ±àдʼþ´¦Àí´úÂë¡£µ±¶à¸öÍøÒ³ÖаüÀ¨
Óв¿·ÖÏàͬµÄÓû§½çÃæÊ±£¬¿ÉÒÔ½«ÕâЩÄÚÈÝÏàͬµÄ²¿·ÖÌáÈ¡³öÀ´£¬×ö³ÉÓû§¿Ø¼þ¡£
HttpHandler:ÊÂʵÉÏ£¬µ±Ò»¸öHTTPÇëÇóµ½´ïHttp ......
<?xml version="1.0" encoding="utf-8"?>
<LinkLibrary xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Link Cat="aa" Url="aa" Desc="aa" />
<Link Cat="bb" Url="aa" Desc="aa" />
<Link Cat="cc" Url="aa" Desc="aa" />
&l ......
¡¡¡¡1.1 ʲôÊÇASP.net
¡¡¡¡ASP.net ÊÇÒ»ÖÖ½¨Á¢ÔÚͨÓÃÓïÑÔÉϵijÌÐò¹¹¼Ü£¬Äܱ»ÓÃÓÚһ̨Web·þÎñÆ÷À´½¨Á¢Ç¿´óµÄWebÓ¦ÓóÌÐò¡£ASP.netÌṩÐí¶à±ÈÏÖÔÚµÄWeb¿ª·¢Ä£Ê½Ç¿´óµÄµÄÓÅÊÆ¡£
¡¡¡¡Ö´ÐÐЧÂʵĴó·ùÌá¸ß
¡¡¡¡ASP.netÊǰѻùÓÚͨÓÃÓïÑԵijÌÐòÔÚ·þÎñÆ÷ÉÏÔËÐС£²»ÏñÒÔǰµÄASP¼´Ê±½âÊͳÌÐò£¬¶øÊǽ«³ÌÐòÔÚ·þÎñÆ÷¶ËÊ×´ÎÔËÐÐʱ½øÐ ......