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
gopikrishnagopikrishna 

visualforce page to csv file with meta content and script code

Hi  all,

 

i create a csv file using visualforce page, i got a csv file with some meta data and script code in csv file. how to get only with vfpage data in csv file 

 

my page:

 

<apex:page controller="AmbassadorNordic" sidebar="false" cache="true"
showHeader="false" contentType="{!if($CurrentPage.parameters.type !=null,
'text/csv#filename.csv',null)}">

<apex:form >

<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type" />
</head>

<apex:pageBlock >
<apex:commandButton value="accounts" action="{!account}"/>
<apex:outputText value="{!input}" escape="false"/>
</apex:pageBlock>
</apex:form>

</apex:page>

 

Thanks

gopikrishna