OK, I'm going to do my best to explain this mess...err...situation.
I'm working in the .NET 2.0 Wizard control. My first step inserts a new record and returns the newly inserted record's id from the database. This value is populated into a label control's .Text property.
Now, I've presented my user with the ability to enter new data through a FormView that when inserted will use the value in the label as an identifier in the database to the previously created "parent" record.
Obviously, the value in the label is "unbound" in relation to the gridview/formview but I need to use it as an insert parameter. Currently, this is what the parameter looks like out of the datasource: <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@UserId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UserId" SourceColumnNullMapping="False" SourceVersion="Current"></Parameter>
I'm assuming the SourceColumn="UserId" value is what would be present if I could actually bind data to this column when the wizard step is presented. Unfortunately, I don't see anything like a "ControlValue" or something that would allow me to reference the value in the label and use that as the value for the insert.
Can someone please suggest a solution, or at the very least, recommend a source that would help me resolve this?
Thanks in advance,
Ric