Asp.NetÒ³ÃæÌøתµÄ·½·¨ÒÔ¼°JSÌøתµÄ·½·¨
<a>±êÇ©
1. <a href=”test.aspx”></a>
2. ÕâÊÇ×î³£¼ûµÄÒ»ÖÖתÏò·½·¨;
HyperLink¿Ø¼þ
1. Asp.net ·þÎñÆ÷¶Ë¿Ø¼þ ÊôÐÔNavigateUrlÖ¸¶¨ÒªÌøתµ½µÄUrlµØÖ·
2. NavigateUrlÊÇ¿ÉÒÔÔÚ·þÎñÆ÷¶ËʹÓôúÂëÐ޸ģ¬Õâ¸öÇø±ðÓÚ<a>
3. ÓÉÓÚHyperLink±¾ÉíûÓÐʼþËùÒÔÒªÔÚ·þÎñÆ÷¶ËÆäËüʼþÖÐÉèÖÃNavigateUrl
4. ´úÂëʾÀý
<Asp:HyperLink id=”hyperlink” runat=”server” NavigatoeUrl=”test.aspx”>ok</Asp:HyperLink>
Response.Redirect()·½·¨
1. ¹ý³Ì£º·¢ËÍÒ»¸öHttpÏìÓ¦µ½¿Í»§¶Ë£¬Í¨Öª¿Í»§¶ËÌøתµ½Ò»¸öеÄÒ³Ã棬Ȼºó¿Í»§¶ËÔÙ·¢ËÍÌøתÇëÇóµ½·þÎñÆ÷¶Ë¡£
2. Ò³ÃæÌøת֮ºóÄÚ²¿¿Ø¼þ±£´æµÄËùÓÐÐÅÏ¢¶ªÊ§£¬µ±AÌøתµ½B£¬BÒ³Ã潫²»ÄÜ·ÃÎÊAÒ³ÃæÌá½»µÄÊý¾ÝÐÅÏ¢¡£
3. ʹÓÃÕâ¸ö·½·¨Ê¹ÓÃÕâ¸ö·½·¨Ìøתºóä¯ÀÀÆ÷µØÖ·À¸µÄUrlÐÅÏ¢¸Ä±ä
4. ¿ÉÒÔʹÓÃSession Cookies ApplicationµÈ¶ÔÏó½øÐÐÒ³Ãæ¼äµÄÊý¾Ý´«µÝ
5. Öض¨Ïò²Ù×÷·¢ÉúÔÚ¿Í»§¶Ë£¬×ܹ²Éæ¼°µ½Á½´ÎÓëWeb·þÎñÆ÷µÄͨÐÅ£ºÒ»´ÎÊǶÔÔʼҳÃæµÄÇëÇó£¬ÁíÒ»´ÎÊÇÖض¨ÏòÐÂÒ³ÃæµÄÇëÇó
Server.Transfer()·½·¨
1. ʵÏÖÒ³ÃæÌøתµÄͬʱ½«Ò³ÃæµÄ¿ØÖÆȨ½øÐÐÒƽ»
2. Ò³ÃæÌøת¹ý³ÌÖÐRequest SessionµÈ±£´æµÄÐÅÏ¢²»±ä£¬Ìøת֮ºó¿ÉÒÔʹÓÃÉÏÒ»¸öÒ³ÃæÌá½»µÄÊý¾Ý
3. Ìøת֮ºóä¯ÀÀÆ÷µØÖ·À¸µÄUrl²»±ä
4. ÕâÖÖ·½·¨µÄÖض¨ÏòÇëÇóÊÇÔÚ·þÎñÆ÷¶ËµÄ½øÐеģ¬ä¯ÀÀÆ÷²»ÖªµÀÒ³ÃæÒѾ·¢ÉúÁËÒ»´ÎÌøת
Server.Execute()·½·¨
1. &nb
Ïà¹ØÎĵµ£º
ÈÏʶASP.NETÅäÖÃÎļþWeb.config
¡¡¡¡Ò»¡¢ÈÏʶWeb.configÎļþ
¡¡¡¡Web.configÎļþÊÇÒ»¸öXMLÎı¾Îļþ£¬ËüÓÃÀ´´¢´æ ASP.NET Web Ó¦ÓóÌÐòµÄÅäÖÃÐÅÏ¢(Èç×î³£ÓõÄÉèÖÃASP.NET Web Ó¦ÓóÌÐòµÄÉí·ÝÑéÖ¤·½Ê½)£¬Ëü¿ÉÒÔ³öÏÖÔÚÓ¦ÓóÌÐòµÄÿһ¸öĿ¼ÖС£µ±Äãͨ¹ýVB.NETн¨Ò»¸öWebÓ¦ÓóÌÐòºó£¬Ä¬ÈÏÇé¿öÏ»áÔÚ¸ùĿ¼×Ô¶¯´´½¨Ò»¸öĬÈ쵀 ......
HttpHandlerʵÏÖÁËÀàËÆÓÚISAPI ExtentionµÄ¹¦ÄÜ£¬Ëû´¦ÀíÇëÇó(Request)µÄÐÅÏ¢ºÍ·¢ËÍÏìÓ¦(Response)¡£HttpHandler¹¦ÄܵÄʵÏÖͨ¹ýʵÏÖIHttpHandler½Ó¿ÚÀ´´ïµ½¡£¶øHttpModuleʵÏÖÁËÀàËÆÓÚISAPI FilterµÄ¹¦ÄÜ¡£
HttpModuleµÄʵÏÖ
HttpModulesʵÏÖÁËÀàËÆÓÚISAPI FilterµÄ¹¦ÄÜ£¬ÔÚ¿ª·¢ÉÏ£¬Í¨³£ÐèÒª¾¹ýÒÔϲ½Ö裺
±àдһ¸öÀà£¬Ê ......
//ÒÔÏ´úÂë¸ù¾Ý±ðÈËÎÄÕºÍ×Ô¼ºÕûÀí
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
namespace WebApplication1
{
public partial class DownfFile : System.Web.UI.Page
{
p ......
½â¾ö·½·¨£º
1.¿´¿´ÄãµÄTerminal Services·þÎñÆô¶¯Ã»ÓУ¬Èç¹ûûÓÐÆô¶¯¾Í¿ÉÒÔ½â¾öÎÊÌâ¡£
2È·ÈÏ Machine Debug Manager ·þÎñÒÑÆô¶¯
3¡¢´ò¿ªÏîÄ¿ÊôÐÔ£¬ÔÚ“Debug”(µ÷ÊÔ)Ò»ÏîÀ°Ñ“Enable the Visual Studio hosting process”(ÆôÓÃVisual Studio ËÞÖ÷½ø³Ì)Ç°µÄ¹³È¥µô¡£
4. ......
JSPͬÑùÊÇʵÏÖ¶¯Ì¬ÍøÒ³µÄÒ»¸öÀûÆ÷¡£ÓÉÓÚËûµÄ½Å±¾ÓïÑÔÊÇJAVA£¬ËùÒԼ̳ÐÁËJAVAÖî¶àÓŵ㡣ÄÇôÓëASPÏà±È£¬Ó¦¸Ã¿ÉÒÔ˵ASPºÍJSP»ù±¾²»ÊÇÒ»¸öµµ´ÎÉϵġ£ÄÇôASP.NETºÍJAVAÈ´ÊÇ¿ÉÒÔ¿¹ºâµÄ¡£
JSPºÍASPÏà±È½Ï£º ÔËÐÐËٶȡ¢ÔËÐпªÏú¡¢ÔËÐÐƽ̨¡¢À©Õ¹ÐÔ¡¢°²È«ÐÔ¡¢º¯ÊýÖ§³Ö¡¢³§ÉÌÖ§³Ö¡¢¶ÔXMLµÄÖ§³ÖµÈµÈ£¬ASP¶¼²»ÊÇJSPµÄ¶ÔÊÖ¡£COM ......