2013年8月30日 星期五

Scientology Video: The Eight Dynamics

Scientology Video: The Eight Dynamics


What goal does every living thing have in common?

Survival.

You are trying to achieve the highese level of survival possible,for as long as possible.
As one looks out across the confusion which is life to most people,you will find that life can actually be subdivided into eight parts,or eight urges toward survival.
In Scientology,this are called "The Dynamics".

山達基的基本原則:八大動力

山達基的基本原則:八大動力


所有生物共同的目標是什麼?

生存。

你一直試著達到最高度的生存能力,而且維持愈久愈好。
仔細觀察多數人視為生活的困惑狀態,會發現生活可細分為八個部分,八道生存的驅動力。
在山達基,這些稱之為「動力」。

2013年8月16日 星期五

How To Assign Value To HiddenField

How To Assign Value To HiddenField

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Assign Value To HiddenField</title>
   
    <script type="text/javascript" language="javascript">
        window.onload = function () {
            document.getElementById("HiddenField1").value = "B";
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:HiddenField ID="HiddenField1" runat="server" Value="A" />
        <asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
    </div>
    </form>
</body>
</html>


        protected void Button1_Click(object sender, EventArgs e)
        {
            Response.Write(HiddenField1.Value);
        }

2013年8月14日 星期三

Directory Listing Denied

開啟網頁的時候
遇到以下錯誤

Directory Listing Denied

This Virtual Directory does not allow contents to be listed.


檢查程式
發現出錯的地方在:Response.Redirect("~");


原因:
在IIS底下,網站虛擬目錄的「文件」=> 「啟用預設內容頁」底下
並沒有設定預設頁


解決方法:
在IIS底下,將虛擬目錄的「文件」=> 「啟用預設內容頁」
新增Default.aspx
(Default.aspx 是我的網站預設的頁面,視情況不同,也可能是其他頁面)