Feb 26

Two years ago bought an HP ProLiant Server,This is the first installation of the system on their own servers HP(In the past are buying IBM),The first time you use iLO,Many feel than the IBM ServerGuide mechanism to facilitate,At least I do not have the Internet to search for ServerGuide download version and burn, etc.,But there seems to slow the process of discovery operations a little unusual,Because it is the first time iLO,Plus regular follow-up is also put into the OS,They did not re-study。
Continue browsing »

Feb 22
//MVC3開始,新增Razer語法,不同於先前的<%...%>括號語法,使用At Sgin(@)敘述程式碼片段。

//在Razer檢視中,使用@*...*@進行程式註解。

//在程式碼中,要輸出內容,要加@或@(...)
//在html標籤中,要輸出內容,要加@
//在程式碼中,要輸出純文字,要加@:
@if(true)
{
    String strPrint = "這是測試輸出文字";
    @strPrint<br/>
    <span>strPring</span><br />
    <span>@strPrint</span><br />
}

@{string strl = "測試";}
@(strl)輸出文字<br />

@{ string strHtml1 = "<ul><li>項目一</li></ul>";}
@Html.Raw(strHtml1)<br />

Feb 13

After noon, helping the company to install a x3650 M5 boot both Windows Update,Will no longer wake up not,Once the suspect is not a bug caused Updates,After all, the issue of the recent emergence of a little frequent Updates。After the case open,In addition to an outer error LED 163 lights,See SYS BRD ERROR Fengyun are bright,I would like to direct a death sentence,Please hurry DBA colleagues subsequent remedial measures,But my colleagues go out to eat,Plus this is the company's main DB Server,If you give up this,To remedy time at least two hours,And data to be re-built in the morning came,So it is eagerly looking for opportunities to wake it。

Continue browsing »

Feb 5
//在測試Controller與View時,如果因為設中斷點導致網頁顯示不完整而無法進行測試,
//可以試著點選"跳離函式(Shift+F11)",讓頁面完整顯示,以進行測試。

//先於Model設計好欄位變數等,
//再於Controller設定執行時,透過剛設計的Model樣板,進行各個變數的處理(遞交資料)
//如從網頁欄位A讀取資料到變數X,再把X送到網頁的欄位B
//最後於View設計各欄位的顯示情形
Feb 4
//Controllers\HomeController.cs
public ActionResult Index()
        {
            TempData["Message"] = "修改此範本即可開始著手進行您的ASP.NET MVC應用程式。";
            return View();
        }
<!--Views\Home\Index.cshtml-->
<h2>@TempData["Message"]</h2>
Feb 3
    //資料模型一對多關聯
    public class Guestbook
    {
        public int Id { get; set; }
        public string Content { get; set; }
        public DateTime CreateTime { get; set; }
        public Member Member { get; set; }
    }

    public class Member
    {
        [Key]
        public string Username { get; set; }
        public string Password { get; set; }
        public string Name { get; set; }
        public string Email { get; set; }

        public ICollection<Guestbook> Guestbook { get; set; }
    }
    //Code First 就是在Model定義好各欄位後,其他的Controller、View都會自動幫你產生,
    //很神奇的功能,讓你專注在寫Model的部分就好