ASP.NET ÈçºÎ£ºÏÔʾµ±Ç°Óû§µÄÃû³Æ
Äú¿ÉÒÔʹÓà LoginName ¿Ø¼þÏÔʾµ±Ç°Óû§µÄÃû³Æ¡£¶ÔÓÚµ±Ç°µÇ¼µÄÓû§£¬ÎÞÂÛÆä±êʶÊÇʹÓà ASP.NET µÇ¼¿Ø¼þ£¨¼°°µº¬µÄ ASP.NET ³ÉÔ±×ʸñ£©»¹ÊÇʹÓü¯³É Windows Éí·ÝÑéÖ¤½¨Á¢µÄ£¬´Ë¿Ø¼þ¶¼ÏÔʾ¸ÃÓû§µÄÓû§ ID¡£
ʹÓÃÏÂÃæµÄÓï·¨ÔÚÒ³ÖзÅÖÃÒ»¸ö LoginName ¿Ø¼þ£º
<asp:LoginName id="LoginName1" runat="server"
FormatString ="Welcome, {0}" />
Ïà¹ØÎĵµ£º
¾¡Ô绺´æ;¾³£»º´æ ÄúÓ¦¸ÃÔÚÓ¦ÓóÌÐòµÄÿһ²ã¶¼ÊµÏÖ»º´æ¡£ÏòÊý¾Ý²ã¡¢ÒµÎñÂß¼²ã¡¢UI »òÊä³ö²ãÌí¼Ó»º´æÖ§³Ö¡£ÄÚ´æÏÖÔڷdz£±ãÒË — Òò´Ë£¬Í¨¹ýÒÔÖÇÄܵķ½Ê½ÔÚÕû¸öÓ¦ÓóÌÐòÖÐʵÏÖ»º´æ£¬¿ÉÒÔ»ñµÃºÜ´óµÄÐÔÄÜÌá¸ß¡£ »º´æ¿ÉÒÔÑÚ¸ÇÐí¶à¹ýʧ»º´æÊÇÒ»ÖÖÎÞÐè´óÁ¿Ê±¼äºÍ·ÖÎö¾Í¿ÉÒÔ»ñµÃ“×ã¹»Á¼ºÃµ ......
ASP.net
µÄ
URL
ÖØÐ´
ÓйØÓÚ
URL
µÄÖØÐ´£¬±¾ÎÄÒ²Ö»ÊÇÄÃÀ´Ö÷Òâ¡£Ïà¼ÌÓÐ
MS
µÄ×é¼þ“
URLRewriter”ºÍÔÚGlobal.asaxÀïµÄ“
Application_BeginRequest()”±àÂ뷽ʽ£¬ÒÔ¼°IISÀïµÄISAPIÉèÖá£
ÄÈÁÐÏÂÀ´£¬ÊµÏÖ·½·¨Ò²¶¼ºÜ¼òµ¥¡£
·½·¨Ò»£ºMS×é¼þ
ÕâÀïÒ²²»ÓÃÏê½âÁË£¬Ïà¹ØÇë¿´£º
......
1. ʹÓÃQueryString±äÁ¿
QueryStringÊÇÒ»Öַdz£¼òµ¥µÄ´«Öµ·½Ê½£¬Ëû¿ÉÒÔ½«´«Ë͵ÄÖµÏÔʾÔÚä¯ÀÀÆ÷µÄµØÖ·À¸ÖС£Èç¹ûÊÇ´«µÝÒ»¸ö»ò¶à¸ö°²È«ÐÔÒªÇ󲻸߻òÊǽṹ¼òµ¥µÄÊýֵʱ£¬¿ÉÒÔʹÓÃÕâ¸ö·½·¨¡£µ«ÊǶÔÓÚ´«µÝÊý×é»ò¶ÔÏóµÄ»°£¬¾Í²»ÄÜÓÃÕâ¸ö·½·¨ÁË¡£ÏÂÃæÊÇÒ»¸öÀý×Ó£º
a.aspxµÄC#´úÂë
private void Button1_Click(object sen ......
ÕâÆªÎÄÕ¾µä£¬¿´¹ýÖ®ºó´óÊÜÆô·¢¡£ÖµµÃÒ»¿´£¡¿´À´ASP.NET¸úJSPÆäʵÊÇÒ»ÑùµÄ£¬±¾ÖÊÉÏÃ»Çø±ð£¬ASP.NETÄÜ×öµ½µÄJSPÒ»Ñù¿ÉÒÔ×öµ½£¬·´Ö®ÒàÈ»¡£Ö»²»¹ýASP.NETµÄ¿ò¼Ü¿´ÆðÀ´ÏȽøÒ»µã£¬²»¹ýJSPÒ²ÔÚ·¢Õ¹£¬ËƺõÒ²³öÏÖÁËÀàËÆASP.NETµÄ¿ò¼Ü¡£
¡¡¡¡Ò»¡¢·þÎñÆ÷½Å±¾»ù´¡½éÉÜ
¡¡¡¡Ê×ÏÈ£¬ÎÒÃÇÏȸ´Ï°Ò»ÏÂWeb·þÎñÆ÷Ò³ÃæµÄ»ù±¾Ö´Ðз½Ê½£º
¡¡¡¡ ......