Click to See Complete Forum and Search --> : Need to create label on another page (form)


kdblack
December 21st, 2006, 06:18 PM
I'm very new to ASP.NET and VB.NET but I'm trying to create a very simple web site. Basically the site will allow users to upload a file to the site and create associated labels. There is an upload form then there will be another form that has the labels on it. I think I have the code to create a label on the upload page but what I want the label on another form. Cannot figure it out. Here is the code I am using:

Dim lblMyLabel As New Label

lblMyLabel.Text = "My Dynamic Label."

Me.Controls.Add(lblMyLabel)

Also, how do a automatically create a link to the uploaded file on the other form?

Thanks,

Keith

MMH
December 22nd, 2006, 12:56 AM
Can u plz explain ur problem in more detail ??

kdblack
December 22nd, 2006, 03:43 AM
Basically, when the user fills in a text box and chooses an upload file, I want the information in the text box to be created as a label on another page in asp.net 2. Also, I need a link to the upload file on the other page also so that other users can download it.

I can create the label on the same page using:

lblMyLabel.Text = TextBox1.Text

Controls.Add(lblMyLabel)

How do I create it on another page?

Hope this makes sense.