//value 為路徑或URL
window.location='LiveStatusTrapping.html';
JoyceHsu1126 發表在 痞客邦 留言(0) 人氣(9)
//在認證帳號密碼後,先將SessionID儲存
Session.Add("ID", Session.SessionID);
//執行其他程式時的判斷式
JoyceHsu1126 發表在 痞客邦 留言(0) 人氣(1,653)

如果需要利用程式來增加Table內的tr、td等內容
<table id="myTable">
<tr>
<td>Row1 cell1</td>
<td>Row1 cell2</td>
</tr>
<tr>
<td>Row2 cell1</td>
<td>Row2 cell2</td>
</tr>
<tr>
<td>Row3 cell1</td>
<td>Row3 cell2</td>
</tr>
</table>
JoyceHsu1126 發表在 痞客邦 留言(0) 人氣(2,506)

於VS2012內:
「工具 > 擴充功能和更新」,在「擴充功能與更新」裡查詢 Bootstrap3 For Mvc4,下載並安裝「Bootstrap3 For Mvc4」
安裝完成後即新增專案,如果遇到下圖
JoyceHsu1126 發表在 痞客邦 留言(0) 人氣(20)
<!DOCTYPE html>
<html>
<body>
<p>Creating and using an object </p>
JoyceHsu1126 發表在 痞客邦 留言(0) 人氣(552)
假設網頁內有一段section:
<section id="contents">
<div class="page-header">
<h1>3. 含有什麼</h1>
</div>
<p class="lead">Bootstrap 中的 HTML、CSS 和 JS 適合各種設備,不過,它們可以被簡單分類成幾個類別,可以參考本文件頂部的巡覽列。</p>
JoyceHsu1126 發表在 痞客邦 留言(0) 人氣(1,268)
不要使用
Response.Write("<script>alert('message')</script>");
改用
JoyceHsu1126 發表在 痞客邦 留言(0) 人氣(22)
<asp:Button ID="btMoveRight" runat="server" Text=" >> " OnClick="btMoveRight_Click" />
<asp:Button ID="btMoveLeft" runat="server" Text=" << " OnClick="btMoveLeft_Click" />
// 右移按鍵的函式
protected void btMoveRight_Click(object sender, EventArgs e)
{
// 將所選到的項目新增至lbGroupUser
for (int i = 0; i < lbNotGroupUser.Items.Count; i++)
{
if (lbNotGroupUser.Items[i].Selected)
{
lbGroupUser.Items.Add(lbNotGroupUser.Items[i]);
lbNotGroupUser.Items.RemoveAt(i);
i--;
}
}
lbGroupUser.ClearSelection();
}
JoyceHsu1126 發表在 痞客邦 留言(0) 人氣(345)