I have a repeater control in my page to display the summary. The last column in each row in repeater control has 2 links "Update/Delete"
I have a link called Update in my repeater control. I need to trigger the event to make "Update" link to be clicked.
Generally, When user clicks Update or Delete link on my repeater control, the following method will handle the event.
Public Sub Repeater_ItemCommand(ByVal sender As Object, ByVal ee As RepeaterCommandEventArgs) Handles RepeaterList.ItemCommand
So, I want to call the same above method by sending CommandName as "Update" and a sequence number to select the particular item in the repeater control.
I tried to do it by calling the following way:
Repeater_ItemCommand(Me, New RepeaterCommandEventArgs(RepeaterList.Items(SeqNum - 1), "Update", Nothing))
When I call the above method, I am getting error like "Object reference is not set to an instance of an object"
I am unable to find the mistake.
Please tell me how to invoke the method
Thanks in advance.