In. net programming, javascript is always necessary to improve the page function. I encountered this problem when writing a java Script:
Call the TextBox Control on the page in the script. The statement is document. getElementById ("<% = txt_id.ClientID %>"), where txt_id is the ID of the call text box, which is hidden text, that is, visible = false.
This statement always has a problem during execution and prompts a lack of objects. Many methods are not successfully debugged, but an unintentional operation successfully solves this problem and sets visible to true, the result is fine.
But this text box is a hidden text box and cannot be displayed on the interface. What should I do? Solution: Set the display attribute to none, and everything will be OK!
Many problems may occur during the programming process. Many of them are silly. As a cainiao, I can only learn it slowly...
From the whx_1113 Column