Is there a way to have the Named Values record a combination of Text and Expression. Sample format what am trying to achieve is given below, unfortunately I tried all the ways but the expression isn't getting evaluated. Any help is greatly appreciated
Evaluated to
You are using single line of expression, which is not evaluating correctly in this case. Instead, use a multi line expression which will work as expected. Code snippet for what you are trying: @{ string str1= "This is date: "; string str2 = (DateTime.Now.ToString()); return str1+str2; }
@{ string str1= "This is date: "; string str2 = (DateTime.Now.ToString()); return str1+str2; }
The named value propery will look as below; Output scrrenshot:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.