Hello,
I'm interested in finding out how to dynamically and/or programmatically code the click event of a link button.
Can anyone help please?
Thanks
Hello,
I'm interested in finding out how to dynamically and/or programmatically code the click event of a link button.
Can anyone help please?
Thanks
Dim strURL as string = "http://www.slbja.com"
LinkButton1.Attributes.Add("onclick", strURL)
How About:
LinkButton1.PostBackUrl = "http://www.techjamaica.com"
LinkButton1.Text = "Click Here for TechJamaica!"
Much Eaiser!
Can't quite rememebr, but try this.
Code:Protected Sub MyClickEvent(o as Object, e as EventArgs) 'Put whatever code you would like here End Sub 'When you are ready to add your event, just... AddHandler MyButton.Click, AddressOf MyClickEvent