Click to See Complete Forum and Search --> : Simple questions regarding asp.net User Controls


jim_keller
09-29-2008, 05:06 PM
I'm working on an older asp.net site that did not use master pages. I'm working on a UserControl called header_main to house the basic title, meta, etc. I have two questions:

1. Every time I make a change in the designer, it wants to add </body> and </html> to the end of the file - any way to disable this? Similarly, It always wants to add Inherits="UserControl/header_main" to the Control tag, and it will not run with this tag in (not sure why it's trying to inherit itself?)

2. I added a public property called metaDescription to the UserControl CodeBehind, and I want to access this in the HTML source portion. I thought something like this would work, but it doesn't:

<%# this.metaDescription %>