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

"Literal content is not allowed within a user control"?

P: n/a
Can I create a user control so that when I drop it on the web form I can put text between the start and end tags as listed

<uc1:KeyFeatures id="KeyFeatures1" runat="server" >test..</uc1:KeyFeatures

Each one will have some lengthy text with bulleted lists, etc and I wanted this for readability. Can I set a property to accept this "innerText" as a value

When I do this I get

Literal content ('test..') is not allowed within a 'ASP.KeyFeatures_ascx'

I can add it as a property inside the start tag, but I wanted to do see if I can do it this way. Thanks, Dave
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.