how to get/change values in fields from inside an <ext:CompositeField>

  1. #1

    how to get/change values in fields from inside an <ext:CompositeField>

    when I do a Trace.Write() to find the value of a field withing a composite field, I can see the value...
    Trace.Write((compositeFieldID.FindControl("textFieldID") as TextField).Text);
    However, when I try to get the value or change the value in the C# code, I get an error saying the control is not defined...
    (compositeFieldID.FindControl("textFieldID") as TextField).Text = "I'm here now";
    I'm having this problem with a ComboBox as well as a TextField.
    How can I get the value from these fields so I can use it in my code?
    Last edited by dsmith; Jul 09, 2010 at 4:19 PM. Reason: typo

Similar Threads

  1. [CLOSED] change fieldlabel of compositefield dinamically
    By Pablo_Azevedo in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 21, 2012, 8:44 AM
  2. [CLOSED] Button inside compositefield
    By SouthDeveloper in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: May 04, 2011, 8:19 PM
  3. [CLOSED] DirectMethods and values from Fields
    By krzak in forum 1.x Legacy Premium Help
    Replies: 23
    Last Post: Mar 03, 2011, 1:11 PM
  4. Replies: 3
    Last Post: Apr 19, 2010, 5:00 AM
  5. [CLOSED] Empty values from text fields
    By CSG in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Apr 21, 2009, 10:14 AM

Tags for this Thread

Posting Permissions