ASP.NETË¢ÐÂÒ³Ãæ
µÚÒ»£º
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>" );
}
µÚÈý£º
private void Button3_Click( object sender, System.EventArgs e )
{
Response.AddHeader( "Refresh","0" );
}
µÚËÄ£º
private void Button6_Click( object sender, System.EventArgs e )
{
Response.Write( "
<script language=javascript>window.location.reload( );
</script>" );
}
µÚÎ壺(ÐèÌæ»»<>)
<script><!--
var limit="3:00"
if ( document.images )
{
var parselimit=limit.split( ":" )parselimit=parselimit[0]*60+parselimit[1]*1
}
function beginrefresh( )
{
if ( !document.images )returnif ( parselimit==1 )window.location.reload( )else
{
parselimit-=1curmin=Math.floor( parselimit/60 )cursec=parselimit%60if ( curmin!=0 )curtime=curmin+"·Ö"+cursec+"ÃëºóÖØË¢±¾Ò³£¡"elsecurtime=cursec+"ÃëºóÖØË¢±¾Ò³£¡ "window.status=curtimesetTimeout( "beginrefresh( )",1000 )
}
}
window.onload=beginrefresh//--> </script><DIV style="Z-INDEX: 102;
LEFT: 408px;
POSITION: absolute;
TOP: 232px" ms_positioning="text2D">
<P><FONT size="3">×Ô¶¯Ë¢ÐÂÒ³Ãæ</FONT></P>
</DIV>
µÚÁù£º
ÔÚдASP.Net³ÌÐòµÄʱºò£¬ÎÒÃǾ³£Óöµ½Ìø×ªÒ³ÃæµÄÎÊÌ⣬ÎÒÃǾ³£Ê¹ÓÃResponse.Redirect £¬Èç¹û¿Í»§ÒªÔÚÌø×ªµÄʱºòʹÓÃÌáʾ£¬Õâ¸ö¾Í²»ÐУ
Ïà¹ØÎĵµ£º
ͨ³£Çé¿öÏ£¬ASP.Net Ò³Ãæ PostBack£¨»Ø·¢£©ºó£¬Ò³ÃæÒ»°ã¶¨Î»ÔÚÕû¸öÍøÒ³µÄ¶¥²¿!µ«ÎÒÃÇÔÚʵ¼ÊÏîÄ¿Öо³£ÐèÒª£¬»Ø·¢ºóÄܶ¨Î»µ½×Ô¼º¸Õ¸Õµã»÷Ìá½»°´Å¥Î»Öã¬ÄÇÕâÖÖÇé¿öÈçºÎʵÏÖÄØ£¬ÏÂÃæ½éÉÜÈýÖÖʵÏÖЩ¹¦Äܵķ½·¨
Ò»¡¢Ó¦ÓóÌÐò¼¶ÉèÖãºÔÚweb.configÖÐÔö¼ÓÒ»¸öpages½Úµã
<pages main ......
http://rzchina.net/node/3210
Web.configÎļþÖпÉÅäÖõÄÉí·ÝÑéÖ¤·½Ê½ÓÐWindows¡¢Forms¡¢PassPort¡¢None¡£
Web.configÎļþÖÐ<authentication>½Úµã£¬Éí·ÝÑéÖ¤·½Ê½È¡¾öÓڸýڵã“mode”ÊôÐÔµÄÉèÖá£
1£®None
None±íʾ²»Ö´ÐÐÉí·ÝÑéÖ¤¡£
2£®Windows
IIS¸ù¾ÝÓ¦ÓóÌÐòµÄÉèÖÃÖ´ÐÐÉí·ÝÑéÖ¤£¬ÆäÖаüº¬ÄäÃûÉí·Ý ......
ASP.NET °²È«ÈÏÖ¤£¨Ò»£©—— ÈçºÎÔËÓà Form ±íµ¥ÈÏÖ¤
ASP.NET °²È«ÈÏÖ¤£¨¶þ£©——Áé»îÔËÓà Form ±íµ¥ÈÏÖ¤ÖÐµÄ deny Óë allow ¼°±£»¤ .htm µÈÎļþ
ASP.NET °²È«ÈÏÖ¤£¨Èý£© ——ÓÃForm ±íµ¥ÈÏ֤ʵÏÖµ¥µãµÇ¼£¨Single Sign On£©
ASP.NET °²È«ÈÏÖ¤£¨ËÄ£©Form ÈÏÖ¤µÄ²¹³ä ......
Ò»¡¢ÈÏʶWeb.configÎļþ
Web.configÎļþÊÇÒ»¸öXMLÎı¾Îļþ£¬ËüÓÃÀ´´¢´æ ASP.NET Web Ó¦ÓóÌÐòµÄÅäÖÃÐÅÏ¢£¨Èç×î³£ÓõÄÉèÖÃASP.NET Web Ó¦ÓóÌÐòµÄÉí·ÝÑéÖ¤·½Ê½£©£¬Ëü¿ÉÒÔ³öÏÖÔÚÓ¦ÓóÌÐòµÄÿһ¸öĿ¼ÖС£µ±Äãͨ¹ýVB.NETн¨Ò»¸öWebÓ¦ÓóÌÐòºó£¬Ä¬ÈÏÇé¿öÏ»áÔÚ¸ùĿ¼×Ô¶¯´´½¨Ò»¸öĬÈϵÄ
Web.configÎļþ£¬°üÀ¨Ä¬ÈϵÄÅäÖÃÉèÖà ......
×÷Ϊһ¸ö³ÌÐòÔ±£¬ÔÚÍê³ÉÉè¼Æºó»¹Òª¸ù¾Ý³ÌÐòµÄÇé¿öÒÔ¼°Óû§µÄ·´Ó³²»¶Ï¶Ô³ÌÐò½øÐиĽø£¬ÕâÑù²ÅÄܲ»¶ÏµØÍêÉÆ×Ô¼ºµÄ×÷Æ·¡£±ÊÕßÔÚÖÆ×÷ÍêÈí¼þÉÌÎñÍøµÄÂÛ̳ºó£¬·¢ÏÖÈËÃÇ×Üϲ»¶ÔÚÌû×ÓÖмÓÉϸ÷ÖÖÓÐÓõÄURLÁ´½Ó»òEmailµØÖ·¡£¶ø±ÊÕßµ±³õÉè¼ÆÊ±Ã»Óп¼Âǵ½ÕâÒ»µã£¬Ê¹µÃÕâЩURLÁ´½Ó»òEmailµØÖ·Ö»ÄÜÒÔÎÄ×ÖµÄÐÎʽ¶ø²¢²»ÊÇÒÔ³¬Á´½ÓµÄÐÎʽÏÔʾ ......