By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,846 Members | 2,146 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,846 IT Pros & Developers. It's quick & easy.

Controls rendered before body when using base class?

P: n/a
Hi, I'm having a problem with my web page. I made a user aspx page
Child.aspx that inherits from a base class TemplatePage
(TemplatePage.cs). The template class overrides Render, streams some
html from a header template html file, calls base.Render(), and then
streams some html from a footer template file. I put some text in the
body of child.aspx and it looks perfect. Now I want to put a user
control on child.aspx that draws a little table and puts pictures in
each cell. My control appears and draws correctly, however, it appears
before my template code! So I have my pictures on top and then
underneath my html from my template!!

Why is this happening? I figured that if I moved the html template
stream code in the base class from Render() to PreRender() then it would
get called before the control renders, but this doesn't seem to help.

Thanks for any info!


Meet people for friendship, contacts,
or romance using free instant messaging software! See a picture you
like? Click once for a private conversation with that person!

*** Sent via Developersdex ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.