Friday 15 February 2013

html - Underscore plus numeric sequence value being appended to end of element id -



html - Underscore plus numeric sequence value being appended to end of element id -

does know why happening?

i have aspx page has info populated repeater. reason numeric sequence value beingness appended element ids beingness created .net. examples of element ids.

id="searchresults_rep_chkboxselectrecord_id_100001_0" id="searchresults_rep_chkboxselectrecord_id_100002_1" id="searchresults_rep_chkboxselectrecord_id_100003_2" id="searchresults_rep_chkboxselectrecord_id_100004_3"

however, element names not have value appended:

name="searchresults_rep_chkboxselectrecord_id_100001" name="searchresults_rep_chkboxselectrecord_id_100002" name="searchresults_rep_chkboxselectrecord_id_100003" name="searchresults_rep_chkboxselectrecord_id_100004"

the ids assigned dynamically in codebehind integer. ...and not happen when running locally, happening on our staging server. aware of clientidmode if wanted not utilize .net id auto naming convention, require many code changes if changed property now. running wall why happening. ideas?

more info in case relevant. staging server running windows server 2003 iis 6

i did end discovering solution issue, had upgrading code .net 2.0 4.0 , default value of clientidmode, .net 4.0 predictable.

adding <pages clientidmode="autoid"> system.web node in web.config resolved issue.

html asp.net .net repeater

No comments:

Post a Comment