T
TaeHo Yoo
In a web user control, control id changes.
For instance, I created a textbox whose id is txtname and if you run it
and view source, you will notice its id has changed to something like
"_c1__c3_txtname".
So when you access the control using javascript, you have to say
document.getelementbyid("_c1__c3_txtname").value
Ok now my problem is sometimes this control's id gets changed somehow
(from "_c1__c3_txtname" to "_c1__c4_txtname") that results in javascript
doesn't work.
Are there any ways of tackling this problems?
Thanks
For instance, I created a textbox whose id is txtname and if you run it
and view source, you will notice its id has changed to something like
"_c1__c3_txtname".
So when you access the control using javascript, you have to say
document.getelementbyid("_c1__c3_txtname").value
Ok now my problem is sometimes this control's id gets changed somehow
(from "_c1__c3_txtname" to "_c1__c4_txtname") that results in javascript
doesn't work.
Are there any ways of tackling this problems?
Thanks