Getting parameter from an ASCX control

R

Roger

How can you retrive a parameter from an ACSX component?

Private Sub Page_Load(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles MyBase.Load

Dim tempUserControl = Page.LoadControl("ViewCar.ascx")
tempUserControl.carid = 223

end sub

this displays a car

there is a button on the ASCX control that gets a value
from the controls user input. i want to pass this value to
the page which has loaded the ASCX control.

I think it is a rendering problem(order), does anyone
knows how to to this ?

Thx
 
D

ddfd

-----Original Message-----
How can you retrive a parameter from an ACSX component?

Private Sub Page_Load(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles MyBase.Load

Dim tempUserControl = Page.LoadControl("ViewCar.ascx")
tempUserControl.carid = 223

end sub

this displays a car

there is a button on the ASCX control that gets a value
from the controls user input. i want to pass this value to
the page which has loaded the ASCX control.

I think it is a rendering problem(order), does anyone
knows how to to this ?

Thx
.
 

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

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top