We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now


#eval function on asp.net

Medium Priority
Last Modified: 2012-05-07
Can anyone tell me why this is complaining at compile time?

the second code snippet works fine!
--this doesnt work
                             <div style="color: #0000AA; font-size: 10px;">
                                         Dim eee As String = #Eval("CustomerID")
                                         Dim aaa As String = getCompanyNameFromID(eee)
--but this does
                             <div style="color: #0000AA; font-size: 10px;">

Open in new window

Watch Question

Please try the following Code in your aspx page

         <%# getCompanyNameFromID (Eval("CompanyName").ToString()) %>


trying it ou
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.