Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Making use of a function of an User Control from an aspx page

Status
Not open for further replies.

Kai77

Programmer
Jun 7, 2004
77
NL
I have this function in my codebehind of an ASCX file:

Public Function addRadiobutton(ByVal strID As String, ByVal strGroupName As String, ByVal Value As String) As PlaceHolder
Dim y As New RadioButton

y.ID = strID
y.Text = Value
y.GroupName = strGroupName

plhContent.Controls.Add(y)
Return plhContent
End Function

It adds a radiobutton with the properties that have been passed to this function to a placeholder which has been coded in the .ascx using <asp:placeholder ...>.

I want to use (load?) this user control and pass the variables to it from my aspx page. How can I achieve this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top