close

TextBox 把屬性 ReadOnly 設成 True 是無法從 JavaScrpt 取到值的

目前測試就二種方法

1. 由 Request 來取值。例如: Request["TextBox1"]

2. TextBox 把屬性 ReadOnly 設成 False。
 在程式 Page_Load 的地方寫入 TextBox1.Attributes.Add("ReadOnly", "ReadOnly")即可。


arrow
arrow

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