R
RA
I have created a button dynamically; which has been added to a TableCell of
a TableRow of a Table control.
Is there a way to add onclick event which calls a procedure on the
Server-side itself.
Any suggestions?
I tried with
btnAdd.Attributes.Add("onClick","AddItem();")
Public Sub AddItem()
'
dim Test as String
Test = "Testing OnClcik"
End Sub
I get "Object Expected" error.
I also tried
btnAdd.Attributes.Add("onClick","AddItem;")
Error message is " 'AddItem' is undefined"
a TableRow of a Table control.
Is there a way to add onclick event which calls a procedure on the
Server-side itself.
Any suggestions?
I tried with
btnAdd.Attributes.Add("onClick","AddItem();")
Public Sub AddItem()
'
dim Test as String
Test = "Testing OnClcik"
End Sub
I get "Object Expected" error.
I also tried
btnAdd.Attributes.Add("onClick","AddItem;")
Error message is " 'AddItem' is undefined"