How to get the server control ID in the client control in the client in ASP.NET

xiaoxiao2021-03-06  24

If the ID of the server control in the user control is btnquery, if you write when you get the control ID through JavaScirpt?

Document.GtelementByid ("btnquery") After running, the script error will be prompted, prompting the BTNQuery object, and then find the ID of the control into top1: btnquery, where top1 is the user control, so TOP1 is the user control. Change it to the following way of writing.

Document.getlementByid ("top1: btnquery")

转载请注明原文地址:https://www.9cbs.com/read-40089.html

New Post(0)