J
JumpingMattFlash
I'm currently creating a number of LinkButtons dynamically using information
from the database.
However I'm struggling to find out how i can react to the user clicking on
them. For some reason the onclick event handler is 'Protected'
I'm trying to use the following code but it will not compile due to the
underlined line
Dim LinkButton As New LinkButton
LinkButton.Text = LinkText
LinkButton.ID = "Unique Number"
LinkButton.CausesValidation =
False
LinkButton.CommandName = "Name of Parameter"
LinkButton.CommandArgument = "Parameter Value"
LinkButton.onclick = "ChangeOrg"
The annoying thing is that i can set the click event handler using the HTML
designer but not programmatically. If anyone has experienced this before and
can provide some assistance it will be gratefully recieved
Many thanks!
from the database.
However I'm struggling to find out how i can react to the user clicking on
them. For some reason the onclick event handler is 'Protected'
I'm trying to use the following code but it will not compile due to the
underlined line
Dim LinkButton As New LinkButton
LinkButton.Text = LinkText
LinkButton.ID = "Unique Number"
LinkButton.CausesValidation =
False
LinkButton.CommandName = "Name of Parameter"
LinkButton.CommandArgument = "Parameter Value"
LinkButton.onclick = "ChangeOrg"
The annoying thing is that i can set the click event handler using the HTML
designer but not programmatically. If anyone has experienced this before and
can provide some assistance it will be gratefully recieved
Many thanks!