I have some VB.NET code that I am trying to convert. I'm not sure what
to do here and was hoping you could help.
Sub PagerButtonClic k(sender As Object, e As EventArgs)
'used by external paging UI
Dim arg As String = sender.CommandA rgument
is the code from:
http://www.4guysfromrolla.com/webtech/082901-1.2.shtml
I have tried this code in c# (converted as best I could) but I cannot
get the sender.CommandA rgument to work.
It's just a button that calls a function on the server side. This
signature:
object sender, System.EventArg s e
does not have an CommandArgument .
I tried a cast like:
(System.Web.UI. WebControls.Dat aGridCommandEve ntArgs) sender, but it has
no effect.
I don't know what to do. Thank you for any help. How can I access the
command argument of a button that is not in the datagrid?