Sunday, March 11, 2012

Error: MyObject is undefined on postback.

Could you post some code or atleast a repro of the problem?


You are most likely trying to use the ID you gave the control. Instead, you should use the control's ClientID property; this will give you the actual ID that is used in the Client's browser. NamingContainer IDs get appended onto their child controls, which helps keep IDs unique.

The next time you run your app, view the source in the browser. Search for your control's ID and see how ASP.NET is appending parent names onto it.


Hi ps2goat

We are marking this issue as "Answered". If you have any new findings or concerns, please feel free to unmark the issue.

No comments:

Post a Comment