Author: pizzaboy | Posted on: 9/15/2009 5:58:03 AM | Views : 492

I'm trying to get a HTML hyperlink to pass in some values as a custom EventArg, but getting a bit losted in setting it up...
Codebehind:
Public Class CountrySelectedArgs Inherits EventArgs Public Value As Short Public Text As String Public Sub New(ByVal value As String, ByVal text As Integer) Me.Value = value Me.Text = text End Sub End Class Public Sub ChangeValue(ByVal sender As Object, ByVal e As CountrySelectedArgs) 'do something... End Sub
ASPX:
<a OnClick="ChangeValue" CommandArgument="1, ""Spain""">spain.png</a>
 
Am I passing in the CommandArguments correctly or should I convert it into the CountrySelectedArgs first (if so, how and where)?
 
Any help w ...

Go to the complete details ...