In the past, in the ASP. NET background, request. Form ("txtdate") was used to obtain the value of txtdate,
The request. Form ("txtdate") of today always gets nothing.
Set breakpoint debugging, found? Request. Form. allkeys does not contain txtdate.
We can see that <input type = text name = txtdate readonly> contains multiple readonly,
After readonly is removed, txtdate is available in the request. Form. allkeys set, and the foreground txtdate value can be obtained smoothly.
I think it may be like this:
When readonly = true or Disabled = true for text field, the background cannot obtain its value through request. form.
Now I only need to add another hide type input to synchronize the txtdate value,
Then obtain the value of hidedate in the background (this txtdate can be input based on changes in other situations, and sometimes the input needs to be limited)