asp.net Ò³ÃæÑÓʱÎåÃë£¬Ìø×ªµ½ÁíÍâµÄÒ³Ãæ
asp.net Ò³ÃæÑÓʱÎåÃë£¬Ìø×ªµ½ÁíÍâµÄÒ³ÃæµÄʵÏÖ´úÂë¡£
--ǰ̨
¸´ÖÆ´úÂë ´úÂëÈçÏÂ:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Successed.aspx.cs" Inherits="Biz_Order_Successed" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div style="height: 100px">
</div>
<div align="center">
<asp:Label ID="lbmessage" runat="server" Font-Size="Large" Font-Bold="true"></asp:Label>
<br />
<br />
<font size="4" >
ϵͳ½«»áÔÚÎåÃëÖÓºóתÏòä¯ÀÀÒ³Ãæ
</font>
<br />
<br />
<font color="blue" size="4" ><a id="hrefUrl" href="" style="text-decoration: underline" runat="server"></a></font>
</div>
</form>
</body>
</html>
--ºǫ́
¸´ÖÆ´úÂë ´úÂëÈçÏÂ:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using HyiSoft.WebUtility;
public partial class Biz_Order_Successed : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string message = string.Empty;
string url = string.Empty;
url = Utility.Request("url");
message = Utility.Request("message");
lbmessage.Text = message;
hrefUrl.HRef = url;
hrefUrl.InnerText = "ÊÖ¶¯×ªÏòÒ³Ãæ";
string strRedirectPage = url;
string strRedirectTime = "5";
string strRedirect = string.Format("{0};url={1}", strRedirectTime, strRedirectPage);
Response.AddHeader("refresh", strRedirect);
}
}
Ïêϸ³ö´¦²Î¿¼£ºhttp://www.jb51.net/article/21290.htm
Ïà¹ØÎĵµ£º
WCFµÄ¼Ü¹¹£ºusing System.ServiceModel;
ÆõÔ¼:Contract
[ServiceContract]
public partial interface IContract
{
[OperationContract]
string DocumentWebHostUrl();
}
·þÎñ£ºService
[ServiceBehavior(IncludeException ......
ÔÚGlobal.asax
ÐèÒª»Ø¹ËµÄ֪ʶµãÊÇ Ïß³Ì ºÍ Îı¾ÎļþµÄ¶Áд¡£
<%@ Application Language="C#" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Threading" %>
<script runat="server">
string logpath;
Thread thread;
......
ÈÏʶASP.NETÅäÖÃÎļþWeb.config
×÷ÕߣºSabine¡¡À´Ô´£ºÈüµÏÂÛ̳
¡¡¡¡Ò»¡¢ÈÏʶWeb.configÎļþ
Web.configÎļþÊÇÒ»¸öXMLÎı¾Îļþ£¬ËüÓÃÀ´´¢´æ ASP.NET Web Ó¦ÓóÌÐòµÄÅäÖÃÐÅÏ¢£¨Èç×î³£ÓõÄÉèÖÃASP.NET Web Ó¦ÓóÌÐòµÄÉí·ÝÑéÖ¤·½Ê½£©£¬Ëü¿ÉÒÔ³öÏÖÔÚÓ¦ÓóÌÐòµÄÿһ¸öĿ¼ÖС£µ±Äãͨ¹ýVB.NETн¨Ò»¸öWebÓ¦ÓóÌÐòºó£¬Ä¬ÈÏÇé¿ ......
ÏÈ¿´¿´ASP.NETÒ³ÃæË¢ÐµÄʵÏÖ·½·¨£º
µÚÒ»£º
C# code
private void Button1_Click( object sender, System.EventArgs e )
{
Response.Redirect( Request.Url.ToString( ) );
}
µÚ¶þ£º
C# code
private void Button2_Click( object sender, System.EventArgs e )
{
Response.Write( " < script lang ......