I am trying to get a c# server control which I have already built to use not only create child controls but also rendercontents. At the moment my control uses the rendercontents method to do some functions and transform xml using xslt. this works great, however I then wanted to add after this transformation a couple of textbox controls. When I do this the textbox controls do not show up in my servercontrol and only the transformation. I then stripped back my code to include the two methods and with just createchildcontrols method the controls appear however as soon as I use the rendercontents method it overwrites the controls and they disappear.
Can anyone please advise me how I should do this?
Silly question, but did you remember to have your RenderContents method call base.RenderContents? (Or RenderChildren, whichever…)