Copied to clipboard

Flag this post as spam?

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


  • Nicolae Sebastian Laslo 12 posts 78 karma points
    Aug 25, 2009 @ 10:10
    Nicolae Sebastian Laslo
    0

    Custom datatype usercontrol wrapper - getting node ID

    Hello guys,

     

    I've been trying to get node ID or a reference to the current node  from a Custom datatype usercontrol wrapper without success.

    Doesn anyone know how to do this ?

     

    Thanks in advanced

    Nicu

     

        public partial class PhotoAlbumManager : System.Web.UI.UserControl, umbraco.editorControls.userControlGrapper.IUsercontrolDataEditor
        {

            public string umbracoValue;


            protected void Page_Load(object sender, EventArgs e)
            {
               
               //Get current node refernce
                 
            }

            #region IUsercontrolDataEditor Members

            public object value
            {
                get
                {
                    return umbracoValue;
                }
                set
                {
                    umbracoValue = value.ToString();
                }
            }

            #endregion

        }


  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Aug 25, 2009 @ 10:23
    Richard Soeteman
    101

    In the Backend you can use:

    Request.QueryString[

    "id"];

    In your website you can use:

    Node

     

    .GetCurrent().Id;

    Hope it helps you,

    Richard

  • Nicolae Sebastian Laslo 12 posts 78 karma points
    Aug 25, 2009 @ 10:37
    Nicolae Sebastian Laslo
    1

    thank you very much

    Request.QueryString["id"] it's what I need

     

    have a nice day

    nicu

     

Please Sign in or register to post replies

Write your reply to:

Draft