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

asp.net(c#)ÍøÒ³ÌøתÆßÖÖ·½·¨Ð¡½á

asp.net(c#)ÍøÒ³ÌøתÆßÖÖ·½·¨Ð¡½á
·¢²¼Ê±¼ä£º2009-11-25 11:13:03
¡¡¡¡1.Response.Redirect("http://www.yayiba.com",false);
¡¡¡¡Ä¿±êÒ³ÃæºÍÔ­Ò³Ãæ¿ÉÒÔÔÚ2¸ö·þÎñÆ÷ÉÏ£¬¿ÉÊäÈëÍøÖ·»òÏà¶Ô·¾¶¡£ºóÃæµÄboolֵΪÊÇ·ñÍ£Ö¹Ö´Ðе±Ç°Ò³¡£
ÌøתÏòеÄÒ³Ã棬ԭ´°¿Ú±»´úÌæ¡£"
ä¯ÀÀÆ÷ÖеÄURLΪз¾¶¡£
:Response.Redirect·½·¨µ¼ÖÂä¯ÀÀÆ÷Á´½Óµ½Ò»¸öÖ¸¶¨µÄURL¡£µ±Response.Redirect()·½·¨±»µ÷ÓÃʱ£¬Ëü»á´´½¨Ò»¸öÓ¦´ð£¬Ó¦´ðÍ·ÖÐÖ¸³öÁË
״̬´úÂë302£¨±íʾĿ±êÒѾ­¸Ä±ä£©ÒÔ¼°ÐµÄÄ¿±êURL¡£ä¯ÀÀÆ÷´Ó·þÎñÆ÷ÊÕµ½¸ÃÓ¦´ð£¬ÀûÓÃÓ¦´ðÍ·ÖеÄÐÅÏ¢·¢³öÒ»¸ö¶ÔÐÂURLµÄÇëÇó¡£Õâ¾ÍÊÇ˵£¬
ʹÓÃResponse.Redirect·½·¨Ê±Öض¨Ïò²Ù×÷·¢ÉúÔÚ¿Í»§¶Ë£¬×ܹ²Éæ¼°µ½Á½´ÎÓë·þÎñÆ÷µÄͨÐÅ£¨Á½¸öÀ´»Ø£©£ºµÚÒ»´ÎÊǶÔԭʼҳÃæµÄÇëÇó,
µÃµ½Ò»¸ö302Ó¦´ð£¬µÚ¶þ´ÎÊÇÇëÇó302Ó¦´ðÖÐÉùÃ÷µÄÐÂÒ³Ã棬µÃµ½Öض¨ÏòÖ®ºóµÄÒ³Ãæ¡£
¡¡¡¡2.Server.Transfer("Default2.aspx?name=zhangsan",true);
Ä¿±êÒ³ÃæºÍÔ­Ò³Ãæ¿ÉÒÔÔÚͬһ¸ö·þÎñÆ÷ÉÏ¡£
ÌøתÏòеÄÒ³Ã棬ԭ´°¿Ú±»´úÌæ¡£
²¨ÇòÂÛ̳ ä¯ÀÀÆ÷ÖеÄURLΪԭ·¾¶²»±ä¡£
ĬÈÏÇé¿öÏ£¬Server.Transfer·½·¨²»»á°Ñ±íµ¥Êý¾Ý»ò²éѯ×Ö·û´®´ÓÒ»¸öÒ³Ãæ´«µÝµ½ÁíÒ»¸öÒ³Ã棬µ«Ö»Òª°Ñ¸Ã·½·¨µÄµÚ¶þ¸ö²ÎÊýÉèÖóÉ
Tb310True£¬¾Í¿ÉÒÔ±£ÁôµÚÒ»¸öÒ³ÃæµÄ±íµ¥Êý¾ÝºÍ²éѯ×Ö·û´®¡£
ͬʱ£¬Ê¹ÓÃServer.TransferʱӦעÒâÒ»µã£ºÄ¿±êÒ³Ã潫ʹÓÃԭʼҳÃæ´´½¨µÄÓ¦´ðÁ÷£¬Õâµ¼ÖÂASP.NETµÄ»úÆ÷ÑéÖ¤¼ì²éb310,,²©Çò,²©ÇòÍø,ÐмÒÐÄË®,ÈüÊÂÍƼö,ÈüÊ·ÖÎö,×ÊÁÏ¿â,×ãÇòÈüÊÂ,ÀºÇò,NBA,ÅâÂÊ,±È·Ö,ÀºÇòÊý¾Ý,×ãÇòÊý¾Ý.
(Machine Authentication Check£¬MAC)ÈÏΪÐÂÒ³ÃæµÄViewStateÒѱ»´Û¸Ä¡£Òò´Ë£¬Èç¹ûÒª±£ÁôԭʼҳÃæµÄ±íµ¥Êý¾ÝºÍ²éѯ×Ö·û´®¼¯ºÏ£¬
±ØÐë°ÑÄ¿±êÒ³ÃæPageÖ¸ÁîµÄEnableViewStateMacÊôÐÔÉèÖóÉFalse¡£
¡¡¡¡3.Server.Execute("Default5.aspx?address=beijing);
Ä¿±êÒ³ÃæºÍÔ­Ò³Ãæ¿ÉÒÔÔÚͬһ¸ö·þÎñÆ÷ÉÏ¡£
ÌøתÏòеÄÒ³Ã棬ÔÙÌøת»áÔ­Ò³Ãæ¡£
ä¯ÀÀÆ÷ÖеÄURLΪԭ·¾¶²»±ä¡£
µ±Ö¸¶¨µÄASPXÒ³ÃæÖ´ÐÐÍê±Ï£¬¿ØÖÆÁ÷³ÌÖØзµ»ØÔ­Ò³Ãæ·¢³öServer.Executeµ÷ÓõÄλÖá£
Ò³Ãæµ¼º½·½Ê½ÀàËÆÓÚÕë¶ÔASPXÒ³ÃæµÄÒ»´Îº¯Êýµ÷Ó㬱»µ÷ÓõÄÒ³ÃæÄܹ»·ÃÎÊ·¢³öµ÷ÓÃÒ³ÃæµÄ±íµ¥Êý¾ÝºÍ²éѯ×Ö·û´®¼¯ºÏ£¬ËùÒÔÒª°Ñ
±»µ÷ÓÃÒ³ÃæPageÖ¸ÁîµÄEnableViewStateMacÊôÐÔÉèÖóÉFalse¡£
¡¡¡¡4.Response.Write("<script language='javascript'>window.open('aaa.aspx');</script>");_
Ä¿±êÒ³ÃæºÍÔ­


Ïà¹ØÎĵµ£º

ASP.NET MVC Óû§ÑéÖ¤ºÍȨÏÞÑéÖ¤


The MVC bits have finally arrived and I’ve spent a while digesting them. I’ve been waiting for the bits to be released to begin working on a side-project, so the first thing I did after downloading them last night was crank it up and start working on a new ASP.NET MVC Web Application p ......

ASP.NET³ÌÐòÖг£ÓõÄÈýÊ®ÈýÖÖ´úÂë

1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º
¡¡¡¡´«ËͲÎÊý£º
response.write("£¼script£¾window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)£¼/script£¾")
¡¡¡¡½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string b = Request.QueryString("id1");
¡¡¡¡2.Ϊ°´Å¥Ìí¼Ó¶Ô»°¿ò
Button1 ......

asp.net×Ô¶¯Ö´ÐÐÈÎÎñ

ÔÚ¸´ÔÓµÄÒµÎñÓ¦ÓóÌÐòÖУ¬ÓÐʱºò»áÒªÇóÒ»¸ö»òÕ߶à¸öÈÎÎñÔÚÒ»¶¨µÄʱ¼ä»òÕßÒ»¶¨µÄʱ¼ä¼ä¸ôÄڼƻ®½øÐУ¬±ÈÈ綨ʱ±¸·Ý»òͬ²½Êý¾Ý¿â£¬¶¨Ê±·¢Ë͵ç×ÓÓʼþ£¬¶¨ÆÚ´¦ÀíÓû§×´Ì¬ÐÅÏ¢£¬Ö§¸¶ÏµÍ³Öж¨ÆÚͬ²½Òì³£Õ˵¥µÈµÈ£¬ÎÒÃdzÆ֮Ϊ¼Æ»®ÈÎÎñ¡£ÊµÏּƻ®ÈÎÎñµÄ·½·¨Ò²Óкܶ࣬¿ÉÒÔ²ÉÓÃSQLAgentÖ´Ðд洢¹ý³Ì£¬²ÉÓÃWindowsÈÎÎñµ÷¶È³ÌÐòÀ´ÊµÏÖ£ ......

ASP.NET»·¾³ÏÂÅäÖÃFCKEditor²¢ÉÏ´«Í¼Æ¬¼°ÆäËüÎļþ

±¾ÎÄÀ´×ÔCSDN²©¿Í£¬×ªÔØÇë±êÃ÷³ö´¦£ºhttp://blog.csdn.net/lzy_1515/archive/2010/03/22/5405250.aspx
FCKEditorÓÚ2009Äê±»¸üÃûΪÐÂÒ»´úµÄCKEditorºÍCKFinder£¬¼ûhttp://ckeditor.com/¡£Ö»ÊDZ¾À´ÊÇÒ»¸öµÄ²úÆ·£¨FCKEditor£©ÏÖÔÚ±ä³ÉÁËÁ½¸ö£¨CKEditor + CKFinder£©£¬Èç¹ûÒªÉÏ´«Îļþµ½·þÎñÆ÷ÉÏ£¬×îа汾µÄCKEditor + CKFinde ......

ASP.NET´´½¨¿ì½Ý·½Ê½

  using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ