I have a function written on a class in c#. This function is returning the image src.
Now i want to usethis in img tag like this way:
<img src=<%=myclass.GetImageUrl('imagename')%> >
is it posible in aps.net on aspx pages.
Is there any other waw to call function on a aspx page.
Your code will work fine, as long is the class is
publicand the function ispublic static, and as long as you’ve imported the namespace in an<%@ Import %>directive.