I've created the following function backend:
public string getImageURL()
{
return "some text";
}
Within my FormView , I have the following code;
<img class="hotelImage floatLeft" src="<% getImageURL(); %>" alt="" />
But I keep getting the CS0103: error. Why is that? I'm pretty sure I've called lots of functions this way in the past.
Update
heh..... this is a bit embarrassing. I discovered I was working on a backup file which is not in use in the solution.... I had opened it to look at some old code... so guess what happened when I added the function to the correct file....