Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

dynamically call C# functions when Hyperlink from code behind is clicked

$
0
0

Hi

I have a requirement to create or open a form if it exist in the database. I tried using below code but the form creates and assign on load time itself. I want to call "CallCreateorOpenForm" when  "CurrentReviewPeriod" is clicked.

Page load ()

{striNGLaunchSummary = CallCreateorOpenForm(advisees[i].EmployeeCode, advisees[i].AdvSummReview_Id);       

stringLaunchSummaryLink ="<u><a href='"+ LaunchSummary + "'>"+ CurrentPeriod.ToString() + "</a></u>";  arrylist.Add(empname, billing hours, LaunchSummaryLink)

}

How can I call hyperlink someting like this from code behind?

<a href="<%#CallCreateorOpenForm(advisees[i].EmployeeCode, advisees[i].AdvSummReview_Id)%>"> Click Here </a>

                             


Viewing all articles
Browse latest Browse all 31927

Trending Articles