#eval function on

Posted on 2009-07-01
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

Question by:philip_doherty
  • 2

Expert Comment

ID: 24753073
Please try the following Code in your aspx page

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


Author Comment

ID: 24851128
trying it ou

Accepted Solution

Muralidharanp earned 500 total points
ID: 24867846
let me know the status.

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
getting id from database 5 37
Windows Tool to Build Android and iOS App 3 55
Authentication of Web Services 3 54
Server Error 11 48
Introduction A frequently used term in Object-Oriented design is "SOLID" which is a mnemonic acronym that covers five principles of OO design.  These principles do not stand alone; there is interplay among them.  And they are not laws, merely princ…
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now