philip_doherty
asked on
#eval function on asp.net
Can anyone tell me why this is complaining at compile time?
the second code snippet works fine!
the second code snippet works fine!
--this doesnt work
<AppointmentTemplate>
<div style="color: #0000AA; font-size: 10px;">
<%
Dim eee As String = #Eval("CustomerID")
Dim aaa As String = getCompanyNameFromID(eee)
Response.Write(aaa)
%>
</div>
</AppointmentTemplate>
--but this does
<AppointmentTemplate>
<div style="color: #0000AA; font-size: 10px;">
<%#Eval("CompanyName")%>
</div>
</AppointmentTemplate>
ASKER
trying it ou
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
<%# getCompanyNameFromID (Eval("CompanyName").ToStr