ASP.NET°²È«ÈÏÖ¤ Ò»
×÷Õߣºº®Óð·ã(cityhunter172)
Ðò
´úÂëд N ¾ÃÁË£¬×ÜÏëдµÃ±ðµÄ¡£Õâ²»£¬ÉÏͷ˵ÔÚÕûºÏÁ½¸öÏîÄ¿£¬×ö³Éµ¥Ò»µÇ¼£¨Single Sign On£©£¬Ò²ÓÐÈ˳Æ֮Ϊ“µ¥µãµÇ¼”¡£²éÔÄÏà¹ØÎĵµºó£¬ÖÕÓÚʵÏÖÁË£¬ÏÖÔÚ°ÑËüÄóöÀ´Óë´ó¼ÒÒ»Æð·ÖÏí¡£»òÐí´ó¼Ò»áÎÊ£º“ÕâÓë±êÌâ²»·ûѽ£¿”±ð¼±£¬ÔÚϱÊ֮ǰ£¬ÎÒÄÔ×ÓÀïÏëµ½ÁËÎÒ¸ÕʹÓà Form ÈÏ֤ʱÓöµ½µÄһЩÎÊÌ⣬ÒÔ¼°Ê¹Óùý³ÌÓõ½µÄһЩ¼¼ÇÉ£¨ÊµÄËͶ»úÈ¡ÇÉÊÇÒ² ^_^ £©¡£Å¼´ò³õÖÐÄÇʱ£¬ÓïÎÄˮƽ¾Í²»ÔõôµÎ£¬¿¼ÊÔ³£³£×÷ÎÄд²»³öÀ´£¬ËùÒÔд×÷ˮƽÓÐÏÞ£¬»¹Çë´ó¼Òº£Á¿¡£¶ÔÁË£¬±¾È˲»½öд×÷ˮƽÓÐÏÞ£¬±à³ÌÄÜÁ¦Ò²²»ÊǺܺ㬴ËÎĹ©´ó¼Òѧϰ½»Á÷Ö®Ó㬻¶Ó¹ã´óÀÍ¿àȺÖÚÁà׿¦µ°¡¢Åõ×ÅÏÊ»¨Ç°À´ÆÀÂÛ¡£×ªÔØÇë×¢Ã÷Ô´´×÷ÕßÄ˺®Óð·ãÊÇÒ²£¬²»Éõ¸Ð¼¤£¡
·Ï»°Ò²ËµµÄ²î²»¶àÁË£¬ÑÔ¹éÕý´«£¬ ASP.NET µÄ°²È«ÈÏÖ¤£¬¹²ÓГWindows”“Form”“Passport”“None”ËÄÖÖÑé֤ģʽ¡£“Windows”Óë“None”ûÓÐÆðµ½±£»¤µÄ×÷Ó㬲»ÍƼöʹÓ㻓Passport”ÎÒÓÖûÓùý£¬°¦……ËùÒÔÎÒÖ»ºÃ½²½²“Form”ÈÏÖ¤ÁË¡£ÎÒ´òËã·ÖÈý²¿·Ö£º
µÚÒ»²¿·Ö —— ÔõÑùʵÏÖfrom ÈÏÖ¤£»
µÚ¶þ²¿·Ö —— Form ÈÏÖ¤µÄʵսÔËÓã»
µÚÈý²¿·Ö —— ʵÏÖµ¥µãµÇ¼£¨Single Sign On£©
µÚÒ»²¿·Ö ÈçºÎÔËÓà Form ±íµ¥ÈÏÖ¤
Ò»¡¢ н¨Ò»¸ö²âÊÔÏîÄ¿
ΪÁ˸üºÃ˵Ã÷£¬ÓбØҪн¨Ò»¸ö²âÊÔÏîÄ¿£¨ÔÝÇÒΪ“FormTest”°É£©£¬°üº¬ÈýÕÅÒ³Ãæ×ãÒÓ£¨Default.aspx¡¢Login.aspx¡¢UserInfo.aspx£©¡£É¶£¿ÓÐÈ˲»»áн¨ÏîÄ¿£¬²»»áÐÂÔöÒ³Ã棿ÄãÎÊÎÒÕ¦°ì£¿ÎÒ¿´Õâô°ìºÃÁË£ºÍϳöÈ¥£¬´ò»ØԽ壬´ÓÓ׶ù԰ѧÆð……
¶þ¡¢ ÐÞ¸Ä Web.config
1¡¢ Ë«»÷ÏîÄ¿ÖеÄWeb.config£¨²»»áµÄ¡¢ÕÒ²»µ½µÄ´ò PP£©
2¡¢ ÕÒµ½ÏÂÁÐÎÄ×Ö <authentication mode="Windows" /> °ÑËü¸Ä³É£º
<authentication mode="Forms">
<forms loginUrl="Login.aspx" name=".ASPXAUTH"></forms>
</authentication>
3¡¢ ÕÒµ½<authorization> <allow users="*" /></authorization>»»³É
<authorization><deny users="?"></deny></authorization>
ÕâÀïûʲôºÃ˵µÄ£¬Ö»Òª¿½±´¹ýÈ¥¾ÍÐС£Ëä˵Èç´Ë£¬µ«»¹ÊÇÓ
Ïà¹ØÎĵµ£º
µÚÒ»£º
private void Button1_Click( object sender, System.EventArgs e ) { Response.Redirect( Request.Url.ToString( ) ); } µÚ¶þ£º
private void Button2_Click( object sender, System.EventArgs e ) { Response.Write( " < script language=javascript>window.location.href=document.URL; < /script&g ......
Ê×ÏÈÒªÌí¼Ó
using System.Data;
using System.Data.SqlClient;
½ÓÏÂÀ´£º
SqlConnection conn = new SqlConnection("server=QLPC\\SQL2005;uid=sa;pwd=£¨ÄãµÄÃÜÂ룩;database=£¨ÄãµÄÊý¾Ý±í£©"); &n ......
ÎÒÓÃC# дµÄÒ»¸öWindowsÓ¦ÓóÌÐòÀï,ÓÃTeeChartʵÏÖÁËÒ»¸öÕÛÏßͼ.
XÖáÊÇʱ¼ä,YÖáÊÇÊýÖµ,¼ÓÁ˸öÒ»´¹Ö±µÄCursorTool.
Êó±êÔÚͼÉÏÒƶ¯Ê±,´¹Ö±µÄCursorTool»á¸ú×ÅÊó±êÅÜ,²¢´¥·¢CursorToolµÄChangeʼþ.
ÔÚCursorToolµÄChangeʼþÀï,
ÎÒÈ¡³öÁËÇúÏßÓë´¹Ö±µÄÏß½»µã´¦µÄ,ʱ¼äÖµ,ºÍÊýÖµ.
ÎÒдÕâ¸öWindow³ÌÐòµÄÖ÷ÒªÉϵÄÊÇÃþ ......
asp.net±ÏÒµÉè¼Æ¾ÍÊÇÓÃC#ÓïÑÔ¿ª·¢µÄWEBµÄ±ÏÒµÉè¼Æ£¬ÏÖÔںöà´óѧ¶¼Ñ¡ÔñÓÃasp.netÀ´×ö±ÏÒµÉè¼Æ£¬±¾Õ¾¿ªÊ¼×ö±ÏÒµÉè¼Æ¾ÍÑ¡ÔñÁËasp.net¿ª·¢±ÏÒµÉè¼Æ±ðµÄÉè¼Æ²»×ö¡£
¶¨×öasp.net±ÏÒµÂÛÎÄרÏߣº
±à³ÌÁªÃËÕ¾³¤
QQ£º153933864 êdzƣºÐÇÆÚ°Ë
ÁõÏÈÉú£ºÊÖ»ú£º13733310210
ÎÒÃǵÄasp.net±ÏÒµÉè¼Æ³ÉÆ·Ö÷Òª²¿·ÖÔÚÏÂÃæÁгö£º
±¾Õ¾ÒÔ¶ ......
¿´ÁËÕÐƸÐÅÏ¢£¬Ã»·¢ÏÖ¼¸¸öÊÇÕÐ.netµÄ£¬¶¼ÊÇJava »òÕßC¡¢C++ ¡£·¢ÏÖ²ÎÓëµÄÏîÄ¿¾ÑéÔÚУ԰ÕÐƸÒѾûÓÐÓÅÊÆÁË£¬
ËƺõÍâÃæ¸üϲ»¶Java£¬µ«ÊǸöÈ˸оõ.NET»áÓкÜÇ¿´óµÄÇ÷ÊÆ£¬ËùÒÔ»¹ÊÇѧϰѧϰ£¬µ«ÊÇÒ²²»·ÅÆúC++µÄ¿ñÈÈ£¬ºÍwindows±à³ÌµÄѧϰ¡£
ºÃµÄµ¼Ê¦ÊÜÒæ·Ëdz£¡£¡ ......