asp:textbox readonly

前端 未结 4 1514
一整个雨季
一整个雨季 2021-02-08 01:16

In asp file I have two asp:textbox




        
4条回答
  •  青春惊慌失措
    2021-02-08 01:28

    Remove the server side attribute - ReadOnly - from the TextBox and set the HTML attribute from the code. You will be able to access the value then in post back:

    textValue2.Attributes.Add("readonly","readonly");
    

提交回复
热议问题