1.表單運用跨視窗傳遞資料

藉由另一個視窗將資料傳回表單並自動關閉視窗

 

最想學的語言 查詢 

<form name="form1" action=""> 

Empty 發表在 痞客邦 留言(0) 人氣()

程序代碼

'獲取用戶真實IP函數
Function GetIP()
    GetIP = Request.ServerVariables("HTTP_X_FORWARDED_FOR")

Empty 發表在 痞客邦 留言(0) 人氣()

1,有如下表格,我们要取第2行第2列的值
<table id="table1">
     <tr>
         <td>1行1列</td>
         <td>1行2列</td>

Empty 發表在 痞客邦 留言(0) 人氣()

10.1 setTimeout( )

  setTimeout( ) 是屬於 window 的 method, 但我們都是略去 window 這頂層物件名稱, 這是用來設定一個時間, 時間到了, 就會執行一個指定的 method。請先看以下一個簡單, 這是沒有實際用途的例子, 只是用來示範 setTimeout( ) 的語法。

 

1. setTimeout( ) 語法例子

 

練習-69 等候三秒才執行的 alert( )

  在 第 3 章 說到 alert 對話盒, 一般是用按鈕叫出來, 在這練習, 你會看到網頁開啟後 3 秒, 就會自動出現一個 alert 對話盒。

Empty 發表在 痞客邦 留言(0) 人氣()

--当月天数
select day(dateadd(ms,-3,DATEADD(m, DATEDIFF(m,0,getdate())+1,0))) 
---当月第一天
select   dateadd(d,-day(getdate())+1,getdate())  
---当月最后一天
select   dateadd(d,-day(getdate()),dateadd(m,1,getdate()))
--本年最后一天
select   dateadd(d,-day(getdate()),dateadd(m,12,getdate()))
--当月第一个星期一
SELECT DATEADD(wk, DATEDIFF(wk, '', DATEADD(dd, 6 - DAY(getdate()), getdate())), '')


Empty 發表在 痞客邦 留言(0) 人氣()

謝謝你們,不管怎麼樣,在我生命中的所遇到的人,不管是貴人、過客、還是.......。曾經我以為努力的付出,會收到實質的回饋;但這一切的經歷,我知道是不對等的,當你想要好好努力,做這一切,往往卻是考驗的開始,或許我本命終究部會有所謂的夥伴、或同伴。

是該開始為自己打算了,只有自己才會對自己好,別人只會想要從你這得到什麼。

回去,卻是這樣的結果,那麼離開呢?

再也沒有不捨了嗎?

還是真的要回花蓮休息一陣子思考思考看看未來了嗎?

Empty 發表在 痞客邦 留言(0) 人氣()

 

參考:

http://www.dotblogs.com.tw/hatelove/archive/2009/01/21/6906.aspx


Empty 發表在 痞客邦 留言(0) 人氣()

<%@ Page language="C#" AutoEventWireup="true" %>
<%@ Import Namespace="System.Drawing" %>

<html>
    <head>
        <script runat="server">
            private void Page_Load(object sender, System.EventArgs e)
            {
                // Create a TableItemStyle object that can be
                // set as the default style for all cells
                // in the table.
                TableItemStyle tableStyle = new TableItemStyle();
                tableStyle.HorizontalAlign = HorizontalAlign.Center;
                tableStyle.VerticalAlign = VerticalAlign.Middle;
                tableStyle.Width = Unit.Pixel(100);

                // Create more rows for the table.
                for (int i = 2; i < 10; i++)
                {
                    TableRow tempRow = new TableRow();
                    for (int j = 0; j < 3; j++)
                    {
                        TableCell tempCell = new TableCell();
                        tempCell.Text = "(" + i + "," + j + ")";
                        tempRow.Cells.Add(tempCell);
                    }
                    Table1.Rows.Add(tempRow);
                }

                // Apply the TableItemStyle to all rows in the table.
                foreach (TableRow r in Table1.Rows)
                    foreach (TableCell c in r.Cells)
                        c.ApplyStyle(tableStyle);

                // Create a header for the table.
                TableHeaderCell header = new TableHeaderCell();
                header.RowSpan = 1;
                header.ColumnSpan = 3;
                header.Text = "Table of (x,y) Values";
                header.Font.Bold = true;
                header.BackColor = Color.Gray;
                header.HorizontalAlign = HorizontalAlign.Center;
                header.VerticalAlign = VerticalAlign.Middle;

                // Add the header to a new row.
                TableRow headerRow = new TableRow();
                headerRow.Cells.Add(header);

                // Add the header row to the table.
                Table1.Rows.AddAt(0, headerRow);  
            }
        </script>
    </head>

    <body>
        <form runat="server">
            <h1>TableCell Example</h1>
            <asp:table id="Table1" runat="server" CellPadding="3" CellSpacing="3">
                <asp:TableRow>
                    <asp:TableCell Text="(0,0)"></asp:TableCell>
                    <asp:TableCell Text="(0,1)"></asp:TableCell>
                    <asp:TableCell Text="(0,2)"></asp:TableCell>
                </asp:TableRow>
                <asp:TableRow>
                    <asp:TableCell Text="(1,0)"></asp:TableCell>
                    <asp:TableCell Text="(1,1)"></asp:TableCell>
                    <asp:TableCell Text="(1,2)"></asp:TableCell>
                </asp:TableRow>
            </asp:table>
        </form>
    </body>
</html>

參考:
http://msdn.microsoft.com/zh-tw/library/tk1zfd2e(VS.80).aspx
http://msdn.microsoft.com/zh-tw/library/system.web.ui.webcontrols.webcontrol.borderwidth(v=VS.80).aspx

Empty 發表在 痞客邦 留言(0) 人氣()

修正 windows\system32\inesrv\下的metabase.xml编辑其中的ASPMaxRequestEntityAllowed 

我也有碰到同樣的問題,放大 metabase.xml 檔案中的AspBufferingLimit就解決了,預設值是4MB。 
在操作的時候要先將服務中的IIS Admin Service停止,才能修改保存,最後再啟動即可.

 

參考:

  1. http://www.cnblogs.com/Athrun/archive/2007/10/18/929094.html
  2. http://sea.tokyo.idv.tw/?p=186
 

Empty 發表在 痞客邦 留言(0) 人氣()

當出現上面的問題的時候,解決方法如下

依「Workaround: Running ASP.NET 1.1 on Vista SP2/WS08 SP2」的設定方式,就可以正常顯示了!

1.Create the Framework64 directory for 1.1
md \windows\microsoft.net\framework64\v1.1.4322\config\
2.Copy the 32bit config to 64bit config location created in step 1.
copy \windows\microsoft.net\framework\v1.1.4322\config\machine.config \windows\microsoft.net\framework64\v1.1.4322\config\
參考資料

Windows Authentication <windowsAuthentication>

Workaround: Running ASP.NET 1.1 on Vista SP2/WS08 SP2\

Empty 發表在 痞客邦 留言(0) 人氣()