Jeg har problemmer med at få vist det som brugeren taster ind i textboxen i step 1 i den label som er på step 2.
Objektet bliver fundet fint nok, men textboxens .Text attribut indeholder bare en tom streng.
Nogen der kan give mig et vink i den rigtige retning ?
Jeg bruger min wizard control som en del af en WebPart, jeg har lavet et eksempel på problemet neden for.
using System;
using System.Runtime.InteropServices;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Serialization;
using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;
using Microsoft.SharePoint.WebPartPages;
namespace Test_Control
{
    [Guid("5cb7bf27-824e-4738-b2cd-b9df5d6c66cc")]
    public class Test_Control : System.Web.UI.WebControls.WebParts.WebPart
    {
        public Wizard wizard;
        public WizardStep wizardStep1;
        public WizardStep wizardStep2;
        public TextBox textField;
        public Label label1;
        public Test_Control()
        {
            this.ExportMode = WebPartExportMode.All;
        }
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            textField = new TextBox();
            textField.ID = "text1";
            label1 = new Label();
            label1.ID = "label1";
            label1.Text = "Input data: ";
            label1.Text += textField.Text;
        }
        protected override void CreateChildControls()
        {
            base.CreateChildControls();
            wizard = new Wizard();
            wizardStep1 = new WizardStep();
            wizardStep1.ID = "step1";
            wizardStep1.Title = "Step 1";
            wizardStep2 = new WizardStep();
            wizardStep2.ID = "step2";
            wizardStep2.Title = "Step 2";
            wizardStep2.StepType = WizardStepType.Finish;
            wizardStep1.Controls.Add(textField);
            wizardStep2.Controls.Add(label1);
            wizard.WizardSteps.Add(wizardStep1);
            wizard.WizardSteps.Add(wizardStep2);
            Controls.Add(wizard);
            label1.Text += ((TextBox)wizardStep1.FindControl(textField.ID)).Text;
        }
        protected override void Render(HtmlTextWriter writer)
        {
            wizard.RenderControl(writer);
        }
    }
}