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

How to Avoid Page Refresh...



In my vfpage i have 2 pageblock sections

1st section contains two radio buttons

2nd section contains file upload with "Attach" command button to show the attached file.


Now i selected one radio button,then i uploaded one file and now when i am click on "Attach" the page refreshes and the selected radio in section 1 dissappears. I need to show the selected radio even after page refresh...


Can anyone suggest me how to do this one....

Anoop AsokAnoop Asok

Mind sharing the vf for your pageblock sections?





Hai Anoop Can u please explain briefly,what is mind sharing..

Anoop AsokAnoop Asok

:) sure, this is what I meant.

Do you mind sharing the vf for your pageblock sections, so that people can take a look? It might help you to get prompt resolutions for the issue you're facing.




Praveen KimarPraveen Kimar

You can use <apex:actionFunction> tag in your VF page to call the controller method. It is an AJAX call, your page will not refresh if you use this.


use an onclick event for the command button to call the action function.



Praveen K.