• ramakrishna236
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 0
    Replies

 

hi,

  i have small problem here i am passing string value that value is not converted into string.it display html 

my code

class:

public string shtml{get;set;}
public test(){
shtml='<html>';
shtml+='<table border="1">';
shtml+='<tr>';
shtml+='<td>ANU</td>';
shtml+='<td>ANu</td>';
shtml+='</tr>';
shtml+='</table>';
shtml+='</html>';
//shtml = 'HI Anu';
}
}

page:

<apex:page renderAs="" controller="test">
<apex:form >
<apex:outputtext value="{!shtml}" escape="true"> </apex:outputtext>
</apex:form>

</apex:page>

 


i am having one dought

             when i clink on menu it will shows menu items and select any item it will redirect to another one Ex:like in salesforce.com when click on setup and below shows like developerconsole and logout