Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kurniawan Kurniawan 202 posts 225 karma points
    Nov 04, 2010 @ 13:29
    Kurniawan Kurniawan
    0

    validation on umbraco custom edit page

    Hi Guys,

    I m currently building custom edit page.

    how to do a validation for each control so it has similar style and design as edit content page?

    any pointers or standard way to implement validation in custom edit page?

    thx

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Nov 04, 2010 @ 14:08
    Aaron Powell
    0

    Umbraco uses standard ASP.NET validation controls and a validation summary.

    Just implement them yourself and do some CSS (or find the appropriate CSS from Umbraco)

  • Kurniawan Kurniawan 202 posts 225 karma points
    Nov 05, 2010 @ 01:55
    Kurniawan Kurniawan
    0

    Do have any reference where I can have a look with the sample user control inside the edit content ? So I can see the css, etc

    Which one is the best approach, Creating a user control which similar to datatype control and use it in custom edit pages or
    Directly using the server control itself ?

     

    Thanks

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Nov 05, 2010 @ 05:06
    Aaron Powell
    0

    If you want to find the styles you have to dig into the Umbraco source yourself. And I don't know why you'd want to put data types onto a custom edit page rather than using the .NET controls themselves

  • Kurniawan Kurniawan 202 posts 225 karma points
    Nov 05, 2010 @ 05:19
    Kurniawan Kurniawan
    0

    Do you know what file I should look at ?

    I need to put umbraco data type control because I need to use the content picker / date time picker from umbraco data type.
    So I don't need to create my own style control.

    Is that possible ?

     

    Thanks

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Nov 05, 2010 @ 06:06
    Aaron Powell
    0

    umbraco.controls.ContentControl is what adds a DataType to the editor UI.

    I'm not sure which ASCX file that is, but I'd assume it's called ContentControl :P

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies