Support

Kom i kontakt med vår kundtjänst, lär dig allt via vår SDK eller ladda ner den senaste uppdateringen.

Custom user controls

2011-01-13 21:31:24 David

I asked this question in the comments for the screencast of custom user controls, but haven't gotten an answer yet so I ask it here aswell... which might be more appropriate. I followed the screencast for custom user controls and it works, but if I try the same thing with a databound dropdownlist it doesn't. I bind the data to the dropdown in the Page_Load of the usercontrol, but it seems that the Page_Load does not execute when I press the Publish-button of the edit-page. This means that the dropdownlist has no listitems in it when the value is saved. How should i bind the dropdownlist to make this work?

All replies

  • 2011-01-13 22:09:17 David

    Sorry... when I had another look at it I realized that the CreateChildControls override was there for a reason. It's working now.