c# - Code Expressions in ASP.NET Themes -


Binding expression (eg & lt;% #%>) is only allowed in ASP.NET skins very limited.

It appears that only eval ("") statements are accepted with the textual argument

any formatting Work or mixed expression is not allowed.

Two part questions:

  1. How does one support the text = ' & lt;% # Eval (MyEnum.FirstName)%> <

  2. How one supports text = '& lt;% # Eval (MyEnum.FirstName) + Eval (MyEnum.LastName)%> 'Inside a skin

Will this work?

  & lt;% = MyEnum.FirstName% & gt; Edit: Hang, it will only work if you are doing raw HTML output, are you trying to get it?  

EDIT: Why not add any property to your minima class that inserts for you? Something like this:

  public string full name {get {return FirstName + '' + LastName; }}  

Then your binding expression can be:

  & lt;% # Eval (MyEnum.FullName)%>  

Comments

Popular posts from this blog

MySql variables and php -

php - Laravel - Overriding a resource route into a different route filter group -

url rewriting - How to implement the returnurl like SO in PHP? -