My code behind is VB.NET. I use ASP.NET UpdatePanel like the following. However, after the post-back, it locks TextBox controls , I cannot type anything
, except when I move the mouse over and click on the TextBox.
Can anyone show me why it locked all TextBox controls after the post-back?
Here’s why I use UpdatePanel:
-
During the post-back, after inserting data into DB, set all TextBox text property to String.Empty
-
After the form is submitted, the Panel pStudent should be refresh , not the entire page
-
and the TextBox txtId should be in focus again.
here’s the mark-up of the ASP.NET page: http://pastebin.com/maSN8mjj
After investigation, it was Me.Form.Attributes.Add(“autocomplete”, “off”) that was in the Page Load event to turn off the TextBox control history.
Now, I moved it to :