Home > Web Front-end > JS Tutorial > How to get webform server control with js script_javascript skills

How to get webform server control with js script_javascript skills

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-16 16:47:55
Original
2265 people have browsed it

To obtain server controls in asp.net webform, js scripts need to use ClientID to obtain server controls

Web frontend to obtain controls:
<%=TextBox1.ClientID %> will print out the control ID of TextBox1
Get the webform control in js script: (to achieve that when the mouse moves to the control, the color of the control turns red)

Copy code Code As follows:


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template