How do I call a function from an <asp:LinkButton> ?

  • Thread starter Thread starter Fresh Air Rider
  • Start date Start date
F

Fresh Air Rider

Hi

Could anyone please give me the syntax for calling a function with
more than one parameter from an <asp:LinkButton> ?

Many thanks
John
 
I understand you want additional parameters inside the LinkButton event
handler.
Simply put, you can't.

The framework automagicaly notify you the user clicked the LinkButton.
That's all.

Other relevant data must be gathered elsewhere.
In example if the LinkButton is inside a DataGrid you can read the DataGrid
rows.
You can even use invisible columns.
Or use an invisible Label or TextBox.

Regards,
Corrado
 
Back
Top