Getting text from nested Label in DataList

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top