I have a javascript function that is called on button click event. The problem is that the identifier will not access the control unless i provide the complete path location which resides inside a Listview control.
Path location.ListView1_ctrl5_Label1 Also,the client identifier is not recognised? '<%= Label1.ClientID %>'
function validateUser(sender, args) {
var pr = document.getElementById('Label1').innerText;
var valid = true;
Deepak TewatiaPosted Dec 17, 2022, 7:53 PM
Hi peter,
you can use the findControl method of the ListView control to find the Label1 control. Here is an example of how you can do this: