J
John
I have an asp.net control which on the first Load of the page has a
unique ID something like:
_ctl0__ctl1_GroupName__ctl1_ControlName
and after the first postback it changes to:
_ctl0__ctl1_GroupName__ctl0_ControlName
which is very bad, because I'm using javascript which relies on the
unique id not changing between postbacks. If anyone has any ideas on
why that's changing, I'd really appreciate it. I know how asp.net sets
the unique id up to _ctl0__ctl1_GroupName_ but i don't know where it's
deciding the ctl0 or ctl1 part of it.
Thanks!
unique ID something like:
_ctl0__ctl1_GroupName__ctl1_ControlName
and after the first postback it changes to:
_ctl0__ctl1_GroupName__ctl0_ControlName
which is very bad, because I'm using javascript which relies on the
unique id not changing between postbacks. If anyone has any ideas on
why that's changing, I'd really appreciate it. I know how asp.net sets
the unique id up to _ctl0__ctl1_GroupName_ but i don't know where it's
deciding the ctl0 or ctl1 part of it.
Thanks!