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