Today encountered a wonderful problem, ASP page form submitted, there is a text box <input type= "text" name= "phone" id= "phone"/> in the background can not get,
This tag in the form form, also has the Name property, but in the background is not get the value of this tag, and other text boxes, check boxes can be obtained, this is strange!
After several twists and turns, finally found the reason, originally I submitted the form, the name = "Phone" This label is now disabled in a JavaScript event, that is, the full status of the label is:
<input type= "text" name= "phone" id= "phone" disabled/>
This causes the value of the parameter to be not phone in the ASP background. This should mean that the phone tag is disabled on the client and the form submission will not be submitted to the server.
The workaround is to set the label to be readable:<input type= "text" name= "phone" id= "Phone" readonly= "readonly"/>
In this way, not only the contents of the label can not be arbitrarily modified, but also can be submitted to the server to
ASP page form submission does not get problems in the background