To disable onfocus = "this.blur ();"

I am selecting values ​​in my textbox from the popup and I used OnFocus = "this.blur ();" for the textbox, I want to disable this feature in the editor while I want to edit. I cannot use readonly because the value is not being passed to the server due to postback, Search engine help

+1


source to share


3 answers


You mentioned that you cannot use readonly

because it is not sent back during POST. Actually an attribute readonly

as in

<input ... readonly="readonly" />

      

sent back to the server during POST. Attribute disabled

as in



<input ... disabled="disabled" />

      

not sent in support of POST.

+4


source


document.getElementById("button").readOnly = true;

      



+1


source


You can send disabled controls by placing this line in Page_Load:

Page.Form.SubmitDisabledControls = true;

      

for ASP.NET 2.0

0


source







All Articles