asp:textbox readonly

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

In asp file I have two asp:textbox




        
4条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-08 01:23

    "bbb" is being posted back, but .NET will not populate a read-only textbox from postback data. You can manually populate the text box by grabbing the form data yourself from the Page_Load() method as follows:

    textValue2.Text = Request.Form[textValue2.UniqueID];

提交回复
热议问题