ASP.NET°²È«ÈÏÖ¤ ËÄ
——ÇÉÃîʵÏÖ Form ±íµ¥ÈÏÖ¤¿çÕ¾µã¡¢¿ç·þÎñÆ÷µÄµ¥µãµÇ¼£¨Single Sign On£©
×÷Õߣºº®Óð·ã(cityhunter172)
µÚËIJ¿·Ö Form ÈÏÖ¤µÄ²¹³ä
Ç°ÈýƪÔÚ CSDN ÂÛ̳¹«²¼ºó£¬Ð§¹ûÈçͬ“ÉñÏÉ·Åƨ——¹ûÈ»²»Í¬·²£¨·´£©Ï씡£Îª¸Ðл¹ã´óÍøÓѵÄÈÈÇéÓëÖ§³Ö£¬Õâ²»£¬¾¹ýÕâÒ»Õó×ÓµÄÔÍÄð¡¢ÐÞÁ¶£¬ÌØÒâ×¼±¸ÁËÕâµÚËÄÏì¡£
֮ǰÎÒÃǽ²ÊöµÄʹÓà Form ÈÏ֤ʵÏÖµ¥µãµÇ¼£¬ÕýÈçÍøÓÑËù˵µÄÄÇÑù£¬Ö»ÄÜÔÚͬһÓòÃûÏÂʹÓ᣶ÔÓÚ¿çÓòÃûµÄµ¥µãµÇ¼£¬³ýÁËʹÓà Passport ÈÏÖ¤Í⣬ÎÒÃÇ»¹ÊÇ¿ÉÒÔÓà Form ÈÏÖ¤µÄ£¬Ö»ÊÇÒª½²¾¿·½·¨¶øÒÑÀ²¡£ÕýËùν“ɽ²»×ªË®×ª£¬È˲»×ªÐÄת”¡£
Ò»¡¢ ¿çÓòÃûµÄ½â¾ö˼·
ÔÚMSDN 2003 ÉÏËÑË÷¹Ø¼ü×Ö“Passport”£¬Å¼ÕÒµ½Ò»Æª“Passport Éí·ÝÑéÖ¤Ìṩ³ÌÐò”¡£ÎÄÕ½²ÊöÁË Passport µÄÈÏÖ¤ÔÀí£¬¹² 8 Ìõ£¬ÎҾͲ»¶à˵ÁË£¬´ó»ï×Ô¸ö¿´°É¡£ÆäÖÐÓÐÒ»¾ä»°£¬ÒýÆðżµÄ×¢Ò⣺“……ÏìÓ¦ÔÚ²éѯ×Ö·û´®Öаüº¬Ò»¸ö¼ÓÃÜµÄ Passport Cookie……”¡£Ò²ÕýÊǴ˾ä²ÅÓÐÁËÏÂÃæµÄ˼·¡£
ËùνÈÏÖ¤µÄͨ¹ýÓë·ñ£¬ÆäʵÖʾÍÊǼì²âÓÐÎÞ·¢·ÅÓÐЧµÄ Cookie £¬Ê¹Óà Form Ò²ºÃ£¬ÔËÓà Passport Ò²°Õ£¬¶¼ÊÇ Cookie ÔÚÆð×÷Óá£Ò²¾ÍÊÇ˵£¬ÎÒÃÇÖ»Òª°ÑÓÐЧµÄ Cookie ÔڵǼºóÒ»´ÎÐÔ·¢·Å¸ø¿Í»§¶Ë¾ÍµÃÁË¡£
¶þ¡¢ ¿çÓòÃû¡¢¿ç·þÎñÆ÷µÄµ¥µãµÇ¼·½·¨
1¡¢ ÈçºÎÔÚ±¾»úÄ£Äâ¿çÓòÃû¡¢¿ç·þÎñÆ÷µÄSingle Sign On
Ö»Òªä¯ÀÀÍøÖ·²»Í¬¾ÍÏ൱ÓÚ²»Í¬ÓòÃû£¬ÔÚ±¾»úÖÁÉÙÓÐÒÔÏÂÈýÖÖ¡£ËüÃÇËäÈ»ÊÇͬһÏîÄ¿£¬±Ë´ËÈ´²»Äܹ²Óà SessionÓë Cookie £¬Ò²¾ÍÎÞ·¨¹²ÏíÉí·ÝÑé֤Ʊ£º
a). http://localhost/FormTest/Login.aspx
b). http://127.0.0.1/FormTest/Login.aspx
c). http://My_Computer_Name/FormTest/Login.aspx //ÒÔµçÄÔÃû³Æä¯ÀÀÕ¾µã
d). http://192.168.0.8/FormTest/Login.aspx //ÒÔÍø¿¨µØÖ·ä¯ÀÀÕ¾µã
e). http://172.meibu.com/FormTest/Login.aspx //ÓµÓйú¼ÊÓòÃû
2¡¢ ÔÚ ASP.NET ÖÐÈçºÎÌá½»¸øÆäËüÒ³Ãæ
ÓùýViewState µÄ´ó¸Å¶¼ÖªµÀ£¬ViewStateÊDZ£´æÔÚ¿Í»§¶ËµÄ¡£²»Öª´ó»ï×¢ÒâûÓУ¬ASP.NET ΪÿÕÅ .aspx Ò³Ã涼Å䱸Á˶À×﵀ ViewState£¬ÇÒ±»½âÎöºó¶¼ÊÇÒÔÒ»¸ö name=" __VIEWSTATE" µÄÒþ²Ø¿Ø¼þÖµÀ´±£´æViewState¡£Ã¿´ÎÒ³ÃæÌá½»£¬·þÎñÆ÷¶¼»á¼ì²é¸Ã¿Ø¼þµÄÖµÓÐÎÞ±»´Û¸Ä£¬Èç´ËÒ»À´¾Í×¢¶¨ .aspx Ö»ÄÜÌá½»¸ø±¾Ò³¡
Ïà¹ØÎĵµ£º
ADO.NET³ÌÐòÉè¼ÆÄ£ÄâÌâ(¹²206Ìâ)
1
ADO.NET Ä£ÐÍÖеÄÏÂÁÐÄÄЩ¶ÔÏóÊôÓÚConnected ¶ÔÏó
A. Connection
B. DataAdapter
C. DataReader
D. DataSet
ÕýÈ·´ð°¸:ABC
2
ÔÚADO.NET ÖÐ,Ϊ·ÃÎÊDataTable ¶ÔÏó´ÓÊý¾ÝÔ´ÌáÈ¡µÄÊý¾ÝÐÐ.¿ÉʹÓÃDataTable ¶ÔÏóµÄ_______ÊôÐÔ.
A. Rows
B. Columns
C. Constraints
D. Data ......
ÎÒÓÃC# дµÄÒ»¸öWindowsÓ¦ÓóÌÐòÀï,ÓÃTeeChartʵÏÖÁËÒ»¸öÕÛÏßͼ.
XÖáÊÇʱ¼ä,YÖáÊÇÊýÖµ,¼ÓÁ˸öÒ»´¹Ö±µÄCursorTool.
Êó±êÔÚͼÉÏÒƶ¯Ê±,´¹Ö±µÄCursorTool»á¸ú×ÅÊó±êÅÜ,²¢´¥·¢CursorToolµÄChangeʼþ.
ÔÚCursorToolµÄChangeʼþÀï,
ÎÒÈ¡³öÁËÇúÏßÓë´¹Ö±µÄÏß½»µã´¦µÄ,ʱ¼äÖµ,ºÍÊýÖµ.
ÎÒдÕâ¸öWindow³ÌÐòµÄÖ÷ÒªÉϵÄÊÇÃþ ......
¿´ÁËÕÐƸÐÅÏ¢£¬Ã»·¢ÏÖ¼¸¸öÊÇÕÐ.netµÄ£¬¶¼ÊÇJava »òÕßC¡¢C++ ¡£·¢ÏÖ²ÎÓëµÄÏîÄ¿¾ÑéÔÚУ԰ÕÐƸÒѾûÓÐÓÅÊÆÁË£¬
ËƺõÍâÃæ¸üϲ»¶Java£¬µ«ÊǸöÈ˸оõ.NET»áÓкÜÇ¿´óµÄÇ÷ÊÆ£¬ËùÒÔ»¹ÊÇѧϰѧϰ£¬µ«ÊÇÒ²²»·ÅÆúC++µÄ¿ñÈÈ£¬ºÍwindows±à³ÌµÄѧϰ¡£
ºÃµÄµ¼Ê¦ÊÜÒæ·Ëdz£¡£¡ ......
ÔÚ¿ª·¢ÐèÒªÓû§×¢²áºó²ÅÄÜʹÓÃÌṩµÄ¸÷ÏÄܵÄÓ¦ÓóÌÐòʱ£¬ÔÚÐÂÓû§Ìá½»×¢²áÐÅÏ¢ºó£¬½Ï³£¼ûµÄ×ö·¨ÊÇÓɳÌÐòÉú³ÉËæ»úÃÜÂ룬Ȼºó·¢ËÍÃÜÂëµ½Óû§×¢²áʱÌîдµÄµç×ÓÐÅÏ䣬Óû§ÔÙÓÃÊÕµ½µÄÃÜÂëÀ´¼¤»îÆäÕÊ»§¡£
ʵÏÖASP.NETÉú³ÉËæ»úÃÜÂ빦ÄÜÊǺÜÈÝÒ׵ģ¬ÏÂÃæµÄ´úÂë¸ø³öÁËÍêÕûµÄʵÏÖ·½·¨£º
publicstaticstringMakePassword(st ......
string destFileName = "ok.txt";
destFileName = Server.MapPath(".") + "\\"+destFileName;
destFileName = Server.UrlDecode(destFileName);
&nbs ......