- Joined
- Jun 5, 2008
- Messages
- 1
- Reaction score
- 0
Hi all
I've been trying for 2 days now to get text from a Label that is nested within a DataList without success.
Here's my issue: I've 2 web forms, Form1.aspx and Form1Confirmation.aspx
On form1.aspx I have a DataList control that gets data corresponding to a DropDownList Control. Inside the DataList I have a Label control to display the row retrieved from the database when the user selects an item from the DropDownList control.
Using Server.transfer, on form1Confirmation.aspx, I want to get the value of the Label control from form1.aspx and display it on another label on form1confirmation.aspx. But I cannot seem to find a way to do so.
I've read about using a recursive function to look for nested controls within a DataList and tried to implement it. Still it doesn't work.
Anyone has encountered this problem before?
I've been trying for 2 days now to get text from a Label that is nested within a DataList without success.
Here's my issue: I've 2 web forms, Form1.aspx and Form1Confirmation.aspx
On form1.aspx I have a DataList control that gets data corresponding to a DropDownList Control. Inside the DataList I have a Label control to display the row retrieved from the database when the user selects an item from the DropDownList control.
Using Server.transfer, on form1Confirmation.aspx, I want to get the value of the Label control from form1.aspx and display it on another label on form1confirmation.aspx. But I cannot seem to find a way to do so.
I've read about using a recursive function to look for nested controls within a DataList and tried to implement it. Still it doesn't work.
Anyone has encountered this problem before?