dropdwon control item is empty when hit submit button.
-
Helo All, I have defined one usercontrol UserDropdownlist and that UserDropdownlist i have bind in render method as per my requirement (Control render method) and on page when i hit submit one control load event i get item.count = 0 i don't why this happpen event data display on viewstate? If that issue resolved if i am binding UserDropdownlist list in onload method of control so can you please tell me what is reason for that? Thanks in Advance,
Anish Patel
-
Helo All, I have defined one usercontrol UserDropdownlist and that UserDropdownlist i have bind in render method as per my requirement (Control render method) and on page when i hit submit one control load event i get item.count = 0 i don't why this happpen event data display on viewstate? If that issue resolved if i am binding UserDropdownlist list in onload method of control so can you please tell me what is reason for that? Thanks in Advance,
Anish Patel
anish27patel wrote:
i have bind in render method
Its better to know the event cycle to solve this problem. Your problem is because you are binding in Render.So it won't be there in ViewState.As u told use load for binding drop down. Search MSDN for Event life cycle in ASP.NET. :)
Arun Jacob http://codepronet.blogspot.com/