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
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
laceholder ...>.
I want to use (load?) this user control and pass the variables to it from my aspx page. How can I achieve this?
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
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
I want to use (load?) this user control and pass the variables to it from my aspx page. How can I achieve this?