top level div allowed in a user control?

  • Thread starter Thread starter foldface
  • Start date Start date
F

foldface

Hi
I want to have a div as the main element of a user control, I'll be
manipulating this div via javascript within that file.
At the moment I get the message:

Per the active schema, the element 'div' must be included within a parent element.

Do I need to contain the div within something else

Ta
F
 
I think that as long as the user control is contained in a "parent element"
(e.g. somewhere in the <body> </body> of a web form) then you're fine.
Visual studio seems to be confused on some of those warnings since it
doesn't always have the complete html for the web page as it is parsing.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top