I am creating a button dynamically on the page with VB.net and need it to run a function on the server side.
When creating the button in ASP I can do something like this:
<asp:Button runat="server" ID="save" Text="Save" onclick="SaveButton_Click"></asp:Button>
When I clicked that button the function "SaveButton_Click()" would run. I am trying to accomplish the same thing when creating the button in VB.net
Protected Sub AddStatusRow_Cick()
' Var
Dim tRow As New TableRow()
Dim tCellText As New TableCell()
Dim statusTextBox As New TextBox()
Dim tCellColor As New TableCell()
Dim colorTextBox As New TextBox()
Dim tSaveCell As New TableCell()
Dim saveButton As New Button()
' Var
colorTextBox.CssClass = "Color {required:false,hash: ...
Go to the complete details ...