-2

I am using the code

Sitecore.Data.Fields.RendererField Thecontent = (Sitecore.Data.Fields.RendererField)Sitecore.
            Context.Database.GetItem("my item path").Fields["Text"];
        if (Thecontent != null)
        {
            Thecontent. .. ????????
        }

I want to hide it. This field is in another ascx and I want to access it from another sublayout.

tshepang
  • 12,111
  • 21
  • 91
  • 136
Miroo
  • 795
  • 3
  • 13
  • 35

1 Answers1

1

The context item should be available from all of the sublayouts.

However if you want to communicate between different user controls, then this question is not a specific to Sitecore, and has been addressed here:

and plenty more if you check Google:

https://www.google.com/?q=communication+between+user+controls

Community
  • 1
  • 1
Martin Davies
  • 4,436
  • 3
  • 19
  • 40