Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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>µÚÁù£º
<meta http-equiv="refresh" content="300;
url=target.


Ïà¹ØÎĵµ£º

asp.netʹÓÃajaxºóÈçºÎÔÚ¿Í»§¶Ëµ¯³öÌáʾ¶Ô»°¿ò

//ƽ³£µ÷ÓÃjavascript·½·¨
ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert'Weclome!!!');</script>");
±³¾°²»Îª°×É«µÄ·½·¨£º
Page.ClientScript.RegisterStartupScript(Page.GetType(), "message", "<script language='javascript' defer>alert('Ìí¼Óʧ°Ü£¬ÇëÁªÏµ¼¼ÊõÔ±£¡') ......

ASP.NET MVC ×Ô¶¨Òå¹ýÂËÊôÐÔʵÏÖEnterpriseµÄlog¹¦ÄÜ

ÏÖÔÚµÄÆóÒµ¼¶¿ª·¢ÏîÄ¿£¬ÌرðÊÇÍøÕ¾Ò»°ã¶¼»áÓõ½log¹¦ÄÜ£¬ÏëÏë´ó²¿·Ö»áÓÃEnterprise Logging Application Block µÄ¹¦ÄÜ »òÕß×Ô¼ºÐ´Ò»¸ö×é¼þ£¬¼Ç¼ϵͳÈÕ־ʼþ£¬¸üºÃµÄ¸ú×ÙÁ˽âϵͳÔËÐÐÇé¿ö, ÏÖÓÃASP.NET MVC µÄ¹ýÂËÊôÐÔʵÏÖlog¹¦ÄÜ£¡
       ASP.NET MVCµÄfilter ÊÇÒ»¸öÊôÐÔ£¬¿ÉÒÔÓ¦Ó ......

asp.net ͼƬ´¦Àí »ñȡͼƬ¿í¶ÈºÍ¸ß¶È

1.»ñȡͼƬ¿í¶ÈºÍ¸ß¶È
    1.Äú¿ÉÒÔʹÓà System.Drawing.Image Àà
    System.Drawing.Image img = System.Drawing.Image.fromFile(Server.MapPath("example.gif"));
int width = img.Width;
int height = img.Height;
img.Dispose();
µ«ÊÇÕâÀïÎÒÃÇÈ´²»ÄÜÔÚµ¼ÈëÃû³Æ¿Õ¼äºóʹÓà Image& ......

asp.net ͼƬ »­Ïß

Bitmap srcImg = new Bitmap(300, 300); //Ò²¿ÉÒÔ¶ÁÈëÒ»ÕÅͼƬ
Graphics graphics = Graphics.fromImage(srcImg);
Font font = new Font("ËÎÌå", 16); //×ÖÌåÓë´óС
Brush brush = new SolidBrush(Color.Red);
graphics.DrawString("www.cftea.com", font, brush, 50, 50); //д×Ö£¬×îºóÁ½¸ö²ÎÊý±íʾλÖÃ
Pen pen = ne ......

C# asp.net macaddr

<HTML><HEAD><TITLE>WMI Scripting HTML</TITLE>
<META http-equiv=Content-Type c>
<SCRIPT language=JScript event="OnCompleted(hResult,pErrorObject, pAsyncContext)" for=foo>
var MACaddress=unescape(MACAddr);
alert(MACaddress);
document.forms[0].txtMACAddr.value=u ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ