function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
dai tran 6dai tran 6 

Why can't connect String in visualforce page?

I connect a Double and String:
​ <apex:column headerValue="Price" value="{!MapProducts[a]['Price__c'] & '$'}"/>

It show error:
Syntax error. Extra '&'​

Why can't connect String in visualforce page?
kamala swarnalathakamala swarnalatha

Try this,

 <apex:column headerValue="Price" value="{!MapProducts[a]['Price__c'] '&' '$'}"/>

Sweet Potato Tec.
Raj VakatiRaj Vakati
try this 
​ <apex:column headerValue="Price" value="{!MapProducts[a]['Price__c']$'}"/>

Shruti SShruti S
Give this a shot - 
<apex:column headerValue="Price" value="{!MapProducts[a]['Price__c']} + '&'"/>
dai tran 6dai tran 6
Thank alls.
Correct it is: value="{!MapProducts[a]['Price__c']}$"