close

在TextBox 中設為ReadOnly 

當有PostBack 時會造成原來的值消失

只好改以Attributes.Add 方式處理

TextBox1.Attributes.Add("readonly", "true");

就解決了

 

arrow
arrow
    文章標籤
    asp.net TextBox
    全站熱搜

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