Asp.net 2.0 WebPartʹÓþÑéµãµÎ
Õ⼸ÌìѧϰʹÓÃWebPart£¬·¢ÏÖÖÚ¶àÎÊÌ⣬ʹÓõãµÎ¼Ç¼ÈçÏ£¬Í¬¸÷λ¹²Ïí£º
1¡¢WebPartµÄʹÓñØÐë»ùÓÚÒ»¸öͨ¹ýÉí·ÝÑéÖ¤µÄÓû§»á»°¡£
2¡¢WebPartµÄʹÓõĸöÐÔ»¯Ó¦ÓÃÓÚËùÓÐÈ˵ÄÑ¡ÏîĬÈÏÊǽûÓõģ¬¿ÉÒÔͨ¹ýÐÞ¸ÄWeb.configÀ´Íê³É
<webParts>
<personalization>
<authorization>
<allow users="*" verbs="enterSharedScope" />
</authorization>
</personalization>
</webParts>
3¡¢
WebPart ĬÈÏʹÓÃÒ³ÃæµÄ URL ´æ´¢¸öÐÔ»¯Êý¾Ý.µ«ÊDz»°üº¬
querystrings£¬ÏÖÔÚҪʵÏÖÔÚͨÓõÄÒ³Ã棨ģ°æ£©À´ÊµÏÖ¼òµ¥µÄÃÅ»§ÏµÍ³£¬Í¨¹ý²»Í¬µÄquerystringsÀ´¶ÁÈ¡¸öÈË£¬²¿ÃŵȵÄÊý¾Ý¡£ÕâÑù¸ö
ÈË×Ô¼ºÉ趨µÄÉ趨¿ÉÒÔÖ±½ÓºÍ±ðÈ˹²Ïí¡£ÕâÑùµÄÐèÇóÔÚÏÖÓеÄWebPartϵͳÉÏÎÞ·¨ÊµÏÖ£¬ÔÚWebPart Components for
Asp.net 2.0: Workspace home URL:http://www.gotdotnet.com/workspaces/workspace.aspx?id=65fa26c3-a62a-49d6-895d-422272e53a0c
ÓÐÒ»¸öÕâÑùµÄWebPartϵͳ¿ÉÒÔÂú×ãÐèÇó¡£Õâ¸öWebPartµÄ×÷Õß½éÉÜ£ºhttp://fredrik.nsquared2.com/viewpost.aspx?PostID=326
4¡¢ÆôÓÃWebPartµÃµ¼³ö¹¦ÄÜ£ºÐÞ¸Äweb.configÖÐWebPartµÄÉèÖÃ
<webParts enableExport="true">
5¡¢
µ¼Èë×Ô¶¨ÒåµÄwebPart ³öÏÖ´íÎó£ºCannot add a control of Type
DotnetClubPortal.WebControls.WebParts.RSSReader. The Type must be
loadable by BuildManager.GetType(string typeName).
´¦Àí°ì·¨£ºÐÞ¸Äweb.configÎļþ£º
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="Bin" />
</assemblyBinding>
</runtime>
http://msdn2.microsoft.com/en-us/library/e0s9t4ck(en-US,VS.80).aspx
Ïà¹ØÎĵµ£º
ÔÚWeb±à³Ì¹ý³ÌÖУ¬´æÔÚןܶలȫÒþ»¼¡£±ÈÈçÔÚÒÔÇ°µÄASP°æ±¾ÖУ¬CookieΪ·ÃÎÊÕߺͱà³ÌÕ߶¼ÌṩÁË·½±ã£¬²¢Ã»ÓÐÌṩ¼ÓÃܵŦÄÜ¡£´ò¿ªIEä¯ÀÀÆ÷£¬Ñ¡Ôñ“¹¤¾ß”²Ëµ¥ÀïµÄ“InternetÑ¡Ï¬È»ºóÔÚµ¯³öµÄ¶Ô»°¿òÀïµ¥»÷“ÉèÖÔ°´Å¥£¬Ñ¡Ôñ“²é¿´Îļþ”°´Å¥£¬ÔÚµ¯³öµÄ´°¿ÚÖУ¬¾Í»áÏÔʾӲÅÌÀï ......
¹ýÈ¥µÄ¼¸ÄêÀºÜ¶àÈËÒªÇóASP.NETµÄÒ»¼þÊÂÇé¾ÍÊǶÔʹÓûùÓÚmodel-view-controller£¨Ä£ÐÍ-ÊÓͼ-¿ØÖÆÆ÷,¼ò³ÆMVC£©¼Ü¹¹À´¿ª·¢webÓ¦ÓõÄÄÚÖÃÖ§³Ö¡£
ÉϸöÖÜÄ©ÔÚAustin¾ÙÐеÄAlt.NET´ó»áÉÏ£¬ÎÒÊ״ζÔÎÒµÄÍŶÓÕýÔÚ¿ª·¢µÄÐÂASP.NET MVC ¿ò¼Ü×÷ÁËÒ»¸ö¹«¿ªµÄÑÝʾ¡£Äã¿ÉÒÔÔÚScott HanselmanÕâÀïµÄ²©¿Í
ÉϹۿ´ÎҵĽ²×ùµÄ¼Ïñ¡£
ÎÒÃ ......
Èç¹ûÓ¦ÓóÌÐòʹÓà ASP.NET ³ÉÔ±×ʸñϵͳÀ´¶ÔÓû§½øÐÐÉí·ÝÑéÖ¤£¬ÔòÄú¿ÉÒÔʹÓà CreateUserWizard ¿Ø¼þÀ´ÔÊÐíÓû§ÔÚ³ÉÔ±×ʸñϵͳÖд´½¨Ò»¸öеÄÓû§ÏCreateUserWizard ¿Ø¼þ»¹¿ÉÒÔ¹©¹ÜÀíÔ±ÓÃÀ´´´½¨ÐÂÓû§£©¡£
1¡¢´´½¨»ò±à¼Ò»¸ö²»ÐèҪȨÏÞµÄ ASP.NET ÍøÒ³¡£
2¡¢Ê¹ÓÃÏÂà ......
ͨ¹ýÔÚÒ³ÉÏ°üº¬ LoginView ¿Ø¼þ¿ÉÒÔÏòÄäÃûÓû§ºÍµÇ¼£¨¾¹ýÉí·ÝÑéÖ¤µÄ£©Óû§ÏÔʾ²»Í¬µÄÐÅÏ¢¡£LoginView ¿Ø¼þ°üº¬Á½¸öÄ£°å£ºÒ»¸öÓÃÓÚÏòÄäÃûÓû§ÏÔʾÐÅÏ¢£¬ÁíÒ»¸öÓÃÓÚÏòµÇ¼Óû§ÏÔʾÐÅÏ¢¡££¨»¹¿ÉÒÔʹÓà RoleGroups ÊôÐÔ°üº¬»ùÓÚ½ÇÉ«Ãû³ÆµÄÄ£°å¡££©¸Ã¿Ø¼þ×Ô¶¯È·¶¨Óû§ÊÇ·ñ¾¹ýÉí·ÝÑéÖ¤²¢³ÊÏÖ ......
¿ÉÒÔʹÓÃÊܱ£»¤ÅäÖÃÀ´¼ÓÃÜ Web Ó¦ÓóÌÐòÅäÖÃÎļþ£¨Èç Web.config
Îļþ£©ÖеÄÃô¸ÐÐÅÏ¢£¨°üÀ¨Óû§ÃûºÍÃÜÂë¡¢Êý¾Ý¿âÁ¬½Ó×Ö·û´®ºÍ¼ÓÃÜÃÜÔ¿£©¡£¶ÔÅäÖÃÐÅÏ¢½øÐмÓÃܺ󣬼´Ê¹¹¥»÷Õß»ñÈ¡Á˶ÔÅäÖÃÎļþµÄ·ÃÎÊ£¬Ò²¿ÉÒÔʹ¹¥»÷ÕßÄÑÒÔ»ñ
È¡¶ÔÃô¸ÐÐÅÏ¢µÄ·ÃÎÊ£¬´Ó¶ø¸Ä½øÓ¦ÓóÌÐòµÄ°²È«ÐÔ¡£
Õë¶Ôasp.net 2.0µÄÓ¦ÓóÌÐòµÄÊý¾Ý¿âÁ´½Ó×Ö·û´®½ ......