Click here to Skip to main content
15,894,312 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a dynamic Hyperlink like that
C#
HyperLink[] lblQuestionNum = new HyperLink[100]; 
for (int i = 0; i < questionCounter; i++)
{
           lblQuestionNum[i] = new HyperLink();
           lblQuestionNum[i].Text = Convert.ToString(i + 1);
           placeholder.Controls.Add(lblQuestionNum[i]);
}
It can generate hyperlink, but my requirement is to call a C# function when I click them. How can I solve this problem?
Posted

 
Share this answer
 
 
Share this answer
 
Comments
ridoy 10-Sep-13 6:00am    
5ed!
sazzad37 10-Sep-13 6:07am    
I need something that just call a function when I click any hyperlink. Your given link is not clear about what I want.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900