HI..
I have a button created during run time, and I wanted to fire Response.Redirect() onclick event, and I tried this: but btnAdd is not recognized. Please note that btnAdd is the name of the button created at run time.
Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click
End Sub
I also tried this on page_load, at which it also fails.
Dim addButton As Button
addButton = form_choice.FindControl("btnAdd")
addButton.Attributes.Add("onclick", "RC_Form();")
Please advice.
...
Go to the complete details ...