How to get asp.net client id at external javascript file
this is not work
var img = document.getElementById('<%= ImgProfile.ClientID %>');
give error null reference;
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Mehul PrajapatiRank #6,843 · 255 reputationPosted Feb 4, 2018, 2:44 AM EST
Gaurav RajRank #2,919 · 493 reputationPosted Feb 4, 2018, 6:28 PM EST