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

asp.net´°ÌåµÄ´ò¿ªºÍ¹Ø±Õ

asp.net´°ÌåµÄ´ò¿ªºÍ¹Ø±Õ
//´ò¿ªÐµĴ°Ìå
Response.Redirect("WebMain.aspx");   
//µ¯³öÒ»¸öд°Ìå
Response.Write("<script>window.open(\"WebMain.aspx\")</script>")
//µ¯³öÒ»¸öÖ»ÓÐÈ·¶¨°´Å¥µÄÌáʾ¿ò
Response.Write("<script>alert(\"Óû§Ãû»òÃÜÂë´íÎó\");</script>");
//¹Ø±Õ´°Ìå²»ÌáʾÐÅÏ¢
Response.Write("<script>window.opener=null;window.close();</script>");
//¹Ø±Õ´°ÌåÌáʾһÌõÐÅÏ¢
Response.Write("<script>window.close();</script>");
//¹Ø±Õ´°ÌåÌáʾÁ½ÌõÐÅÏ¢
Response.Write("<script>if(confirm(\"È·¶¨Í˳ö£¿\")==true){window.close();}</script>");


Ïà¹ØÎĵµ£º

Asp.NETÉú³É¾²Ì¬Ò³Ãæ²¢·ÖÒ³(ÎÄÕÂÄÚÈÝ·ÖÒ³)

Ö÷ÒªµÄÔ­Àí¾ÍÊÇÌ滻ģ°åÀïµÄÌØÊâ×Ö·û¡£
1¡¢¾²Ì¬Ä£°åÒ³Ãæ template.html£¬Ö÷ÒªÊǶ¨ÒåÁËһЩÌØÊâ×Ö·û£¬ÓÃÀ´±»Ìæ»»¡£
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">   <html>   <he ......

ASP.NETÔÚ±¾µØ·þÎñÆ÷ÉÏ´´½¨Ä¿Â¼²¢ÔÚ¸ÃĿ¼ÏÂдÎļþ

public static Boolean WriteTextFile(string content, string filepath,string name)
{
FileStream fs;
StreamWriter sw;
if (!System.IO.Directory.Exists(filepath))
{
DirectoryInfo DirInfo = Directory.CreateDirectory(filepath); //´´½¨Ä¿Â¼
DirI ......

½«Asp.netÒ³ÃæÊä³öΪHTML

WebRequest mywebrq;
WebResponse mywebresp;
StreamReader sr;
Streamwriter sw;
Private void Page_Load(object sender,EventArgs e) { mywebreq=WebRequest.Create( http://localhost/Test.aspx ); mywebresp=mywebreq.GetResponse();
sr=new streamReader(mywebresp.GetResponsestream());
strHtml=sr.ReadT ......

asp.netµÄÒì³£´¦Àí»úÖÆ


    ³ÌÐò¿ª·¢ÖУ¬Êý¾ÝÁ÷°´ÕÕÒ»¶¨µÄ¹æÂɽøÐд«Ê䣬Èç¹ûÓû§ºÍ³ÌÐòÖ®¼äµÄ½»»¥ÍêÈ«°´ÕÕÔ¤¶¨µÄЧ¹ûÔËÐУ¬³ÌÐò²»»á³öÏÖÎÊÌâ¡£¿ÉÒÔ¼ÙÉèËù´¦ÀíµÄÊý¾Ý¶¼·ûºÏÒªÇó£¬Í¨¹ý½çÃæ×÷¸ñʽÅж¨£¬ËùÓÐ×ÊÔ´¶¼ÕýÈ·£¬µ«ÊÇΪÁËϵͳµÄ°²È«£¬ÐèÒª´¦Àí´æÔÚµÄÒþ»¼£¬²»ÄܶÔÊý¾Ý°²È«±§ÓÐÀíÏ뻯µÄÏë·¨¡£
    ÔÚASP.NET ......

ASP.Net 2.0 ·¢ËÍÓʼþµÄ´úÂë

ÕâÁ½ÌìÒòΪҪ×öÒ»¸ö¿ÉÒÔÊÕ¼¯Óû§Ìá½»ÐÅÏ¢£¬È»ºó·¢ËÍÓʼþµ½Ö¸¶¨ÓÊÏäµÄÍøÒ³¡£ÔÚ asp.net 2.0 ÀïÃæ·¢ËÍÓʼþ¿ÉÒÔʹÓà System.Net.Mail ÏÂÃæµÄÀà¡£http://www.systemnetmail.com/faq/2.1.aspx Õâ¸öµØÖ·ÓÐ System.Net.Mail µÄ×÷ÕßдµÄ·Â·ðÊÇ MSDN ÀàËÆµÄ Faq£¬¿´´úÂëµÄʱºò¿ÉÒԲο¼ÒÔÏ¡£Ê²Ã´¶¼²»ËµÁË£¬ÏÂÃæÌù³öÀ´´úÂë°É£¬±Ï¾¹´ú ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ