R
RSH
I have a simple question regarding inheritance in a web form.
I have a DropDownList in an aspx form. It is called DropDownList1
I have a class that will be overriding the render event so I have a snippet
of this class:
Public Class CustomDDL
Inherits DropDownList
Protected Overrides Sub render(ByVal writer As HtmlTextWriter)
For Each li As ListItem In Items
li.Text = li.Text & " - Test Render"
Next
End Sub
End Class
My question is ... what is the syntax to "convert" dropdownlist1 from a
dropdownlist to my CustomDDL?
Thanks!
Ron
I have a DropDownList in an aspx form. It is called DropDownList1
I have a class that will be overriding the render event so I have a snippet
of this class:
Public Class CustomDDL
Inherits DropDownList
Protected Overrides Sub render(ByVal writer As HtmlTextWriter)
For Each li As ListItem In Items
li.Text = li.Text & " - Test Render"
Next
End Sub
End Class
My question is ... what is the syntax to "convert" dropdownlist1 from a
dropdownlist to my CustomDDL?
Thanks!
Ron