I have two buttons, preview and Save. With help of preview button user can view the data based on the format and then can save.
But when preview is clicked, one text
you can put your code in
Page_Init() { //put your code here }
instead of
Page_Load() { //code }