The textbox Control is called in javascript in. net programming.

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.