none
Div control in a custom control RRS feed

  • Question

  • Hi there,

    I created a user control which is also supposed to work as a container.

    So I added a child node (<div>) to the control and now VS's designer is complaining this:

    "Parser Error: Type 'System.Web.UI.UserControl' does not have a property named 'div'"

     

    So what I did is I created a propery in the control named 'Div'. Although the code works on runtime, in the designer it is still complaining about the same thing.

     

    So I looked all over the web and found i have to put [ParseChildren(true, "div")] on my class and [PersistenceMode(PersistenceMode.InnerProperty)] on my property..

    I did that and it is still not working.

     

    Can someone please tell me why?

     

    Thanks

    Kevin


    Kevin P C
    • Moved by Figo Fei Wednesday, March 24, 2010 3:10 AM (From:Visual C# General)
    Monday, March 22, 2010 10:52 AM

All replies

  • Hi Kevin

    Please use forums.asp.net for further response.

    Thanks.


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, March 24, 2010 3:09 AM