XPÏÂasp.netÓû§µÄÉèÖÃÎÊÌâ
1. ÔÚXPÏ£¬IIS·¢²¼asp.net³ÌÐòʱ£¬ÓÐʱ»áÓöµ½±¨´í“µ±Ç°Óû§ÎÞ·¨·ÃÎÊIISÔªÊý¾Ý¿â”»ò“ASP.NETÓû§ÎÞ·¨·ÃÎÊÖ¸¶¨Ä¿Â¼”£¬ÎÊÌâµÄ½â¾ö·½·¨ÈçÏ£º
1.ÔÚÄãËùÐèÒª·ÃÎʵÄ×ÊԴĿ¼ÉÏÓÒ¼üÑ¡Ôñ “¹²ÏíºÍ°²È«”£¬È»ºóµã»÷“°²È«”ҳǩ¡£
2.Èç¹ûûÓГ°²È«”ҳǩ£¬ÔòÔÚ“¹¤¾ß-Îļþ¼ÐÑ¡Ïî-²é¿´”ÖУ¬È¡Ïû“ʹÓüòµ¥Îļþ¹²Ï픵ÄÑ¡Ôñ£¨´ËÏîÒ»°ãÊÇĬÈϹ´Ñ¡µÄ£©¡£
3.ÔÚ“°²È«”ҳǩÖÐÌí¼Ó“Network Service”ºÍ“asp.net”Á½¸öÓû§¡£
4.Èç¹ûÓû§ÁбíÖÐÎÞ·¨ÕÒµ½asp.netÓû§£¬Ôò˵Ã÷asp.netûÓÐ×¢²á³É¹¦£¬Äã¿ÉÒÔÖØа²×°IIS»òÔÚasp.net 2.0Ŀ¼Ï£¨Ò»°ãΪC:\WINDOWS\Microsoft.NET\Framework\v2.0.50727)Ö´ÐÐ
aspnet_regiis -ga YourComputerName
aspnet_regiis -i -enable
net stop iisadmin
net start w3svc
ÒÔÉÏÃüÁîµÄ×÷ÓÃÊÇ£ºÎªµ±Ç°Óû§ÊÚÓèȨÏÞ£¬Ê¹Æä¿ÉÒÔ·ÃÎÊIISÔªÊý¾Ý¿âºÍASP.NETʹÓõÄÆäËûĿ¼£»°²×°ASP.NET 2.0²¢×¢²á£»ÖØÆôIIS¡£
5.Ìí¼ÓÁË“Network Service”ºÍ“ASP.NET”Á½¸öÓû§ºó£¬¸ù¾ÝÐèÒªÉèÖÃÆäȨÏÞ¼´¿É¡£
2.iwmsÕý³£Ê¹ÓÃÐèÒªµÄȨÏÞ
¡¡¡¡ÕâЩȨÏÞÊÇÔËÐÐasp.net³ÌÐòʵÏÖiwmsµÄËùÓй¦ÄÜËùÐèÒªµÄȨÏÞ¡£Èç¹ûȨÏÞ²»×ã»áÔì³ÉiwmsÎÞ·¨ÔËÐлò²¿·Ö¹¦Äܳö´í¡£
¡¡¡¡Ò»°ãÇé¿ö½¨Òé¸ø aspnetÓû§ »ò usersÓû§×é “ÍêÈ«¿ØÖƔȨÏÞ¡£Ò²¿ÉÒÔÈ¥µô“¸ü¸ÄȨÏÞ”ºÍ“È¡µÃËùÓÐȨ”ȨÏÞ¡£³ýÁËÕâÁ½¸öȨÏÞ£¬ÆäËüµÄȨÏÞ¶¼Ó¦µ±ÔÊÐí¡£
¡¡¡¡Èç¹ûÉèÖÃÒÔÉÏȨÏÞÈÔÈ»ÓÐÎÊÌ⣬Çë¸ø Network ServiceÓû§ »ò IIS_WPGÓû§×é¶ÁȡȨÏÞ¡£
¡¡¡¡Ï±ß˵ÏÂΪʲôÐèÒªÕâЩȨÏÞ£º
¡¡¡¡“±éÀúÎļþ¼Ð/ÔËÐÐÎļþ”¡¢“ÁгöÎļþ¼Ð/¶ÁÈ¡Êý¾Ý”¡¢“¶ÁÈ¡ÊôÐÔ”¡¢“¶ÁÈ¡À©Õ¹ÊôÐÔ”¡¢“¶ÁȡȨÏÞ”ÕâÎå¸öȨÏÞÊÇiisÔËÐÐasp.net³ÌÐò×î»ù±¾µÄȨÏÞ¡£
¡¡¡¡“´´½¨Îļþ/дÈëÊý¾Ý”¡¢“´´½¨Îļþ¼Ð/¸½¼ÓÊý¾Ý”¡¢“ɾ³ý×ÓÎļþ¼Ð¼°Îļþ”¡¢“ɾ³ý”ÕâËĸöȨÏÞÊÇ°²×°ºÍÉèÖÃiwms¼°Éú³É¾²Ì¬Îļþ¡¢ÉÏ´«Îļþ¼°¹ÜÀíËù±ØÐëµÄȨÏÞ¡£
¡¡¡¡
Ïà¹ØÎĵµ£º
ÓÉÓÚÏîÄ¿ÖжദÐèÒª¶ÔÅäÖÃÎļþ½øÐвÙ×÷£¬ÈçÅäÖÃÐÅÏ¢µÄ¶ÁÈ¡¡¢¸ü¸ÄºÍдÈ룬ÐèÒªÒ»¸öͨÓõÄÀàÀ´¶ÔÆä½øÐвÙ×÷ºÍ´¦Àí¡£Õâ´ÎµÄÈÎÎñ¾ÍÊÇÅäÖýڵÄһЩÓ÷¨¡£
Õâ´ÎÉý¼¶ºóµÄ¿ª·¢¹¤¾ßÊÇ»ùÓÚVS2005µÄ£¬·ÖÎöÁËVS2005 ÐÂÔöµÄһЩ¹¦ÄÜ£¬Ëü×Ô´øÁËÒ»Ì×ÅäÖÃÎļþÖнáµãµÈµÄÅäÖá£Ä¿Ç°µÄÏîÄ¿ÓõÄÅä ......
µÚÒ»:
Response.Write(<script></script>);
µÚ¶þ:
ÍÐÒ»¸öLiteral¿Ø¼þ
Literal(¿Ø¼þÃû).Text="<script></script>";
......
´æ´¢¹ý³Ì´úÂ룺
create procedure proc_name
@para1 nchar(20), --ÊäÈë²ÎÊý
@para2 int = null output¡¡--Êä³ö²ÎÊý£¬¹©³ÌÐòʹÓÃ
as
begin
if (@para1='a')
begin
insert into employee(name) value ......
ʹÓÃASP.NETÉú³É¾²Ì¬Ò³ÃæµÄ·½·¨ÓÐÁ½ÖÖ£¬µÚÒ»ÖÖÊÇʹÓÃC#ÔÚºǫ́Ӳ±àÂ룬µÚ¶þÖÖÊǶÁÈ¡Ä£°åÎļþ£¬Ê¹ÓÃ×Ö·û´®Ìæ»»µÄ·½·¨¡£µÚÒ»ÖÖ·½·¨±àÂëÁ¿´ó£¬
¶øÇÒά»¤±È½ÏÀ§ÄÑ¡£ÎÒÖص㽲½âµÚ¶þÖÖ·½·¨¡£µÚ¶þÖÖ·½·¨µÄ»ù±¾Ë¼Â·ÊÇ£ºÊ¹ÓÃDWÖ®ÀàµÄ¹¤¾ßÉú³ÉÒ»¸ö¾²Ì¬Ò³ÃæÄ£°å¡£¶ÁÈ¡¸ÃÄ£°åÎļþ£¬È»ºó¶ÔÀïÃæµÄÌØÊâ±ê¼ÇʹÓÃ
ÕæʵµÄÊý¾ÝÌæ»»µô£¬²¢Éú³ÉÒ ......
ASP.NET³£¼û°²È«ÎÊÌâ
Ò»¡¢SQLÓï¾ä©¶´
Ðí¶à³ÌÐòÔ±ÔÚÓÃsqlÓï¾ä½øÐÐÓû§ÃÜÂëÑé֤ʱÊÇͨ¹ýÒ»¸öÀàËÆÕâÑùµÄÓï¾äÀ´ÊµÏֵģº
Sql="Select * from Óû§±í where ÐÕÃû = '" + name + "' and ÃÜÂë = '" + password + "'"
ͨ¹ý·ÖÎö¿ÉÒÔ·¢ÏÖ£¬ÉÏÊöÓï¾ä´æÔÚ×ÅÖÂÃüµÄ©¶´¡£µ±ÎÒÃÇÔÚÓû§Ãû³ÆÖÐÊäÈëÏÂÃæµÄ×Ö·û´®Ê±£ºtes ......