+1-888-365-2779
Try Now
More in this section

Forums / 3.x Pre-release forums (retired) / User Control inner control must be in Form

User Control inner control must be in Form

3 posts, 0 answered
  1. bnye
    bnye avatar
    332 posts
    Registered:
    22 Sep 2005
    05 Nov 2006
    Link to this post
    Whenever I drag a usercontrol into a place holder I get an error that says...

    Error Rendering Control - usercontrols_testcontrol_testcontrol_ascx
    An unhandled exception has occurred.
    Control 'TextBox1' of type 'TextBox' must be placed inside a form tag with runat=server.

    This is really basic control with just a texbox in it. Has anyone else encountered this error?

    I apologize in advance if this question has already been addressed.

    Sincerely,

    Ben
  2. bnye
    bnye avatar
    332 posts
    Registered:
    22 Sep 2005
    05 Nov 2006
    Link to this post
    Oh I see now it shows that until I publish it. The control renders fine after publishing.

    One thing I did notice is that it didn't display the value of a couple of string properties in the property editor. It looks like it stored them, but they didn't appear. I had to make them enums for it to stick, but that is certainly not a big deal.

    Sincerely,

    Ben

    PS Don't forget to vote
  3. Bogdana Ivanova
    Bogdana Ivanova avatar
    66 posts
    Registered:
    24 Sep 2012
    06 Nov 2006
    Link to this post
    Hi Ben,

    It is nice to hear from you again. Unfortunately, at this stage Sitefinity 3.0 does not manage very well with the design time of the user controls. That is why you get an error message when you drag and drop a user control and it is visible only when the changes are published. This problem will be fixed in the second beta of Sitefinity 3.0 that is due around November 15th.

    As for the control properties, if you need to make
    a given property visible, you have to do the following:
    1. Mark up the property with browsable attribute;
    2. If the property is not a basic type, you need to provide a string converter, otherwise the system will try to persist the whole graph;

    If you come up with more questions, do not hesitate to contact us.

    Greetings,
    Bogdana Ivanova
    the telerik team

Register for webinar
3 posts, 0 answered