How to avoid Page_Load() on button click?

后端 未结 6 1737
鱼传尺愫
鱼传尺愫 2021-01-18 03:01

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

6条回答
  •  情话喂你
    2021-01-18 03:28

    you can put your code in

    Page_Init()
    {
       //put your code here
    }
    

    instead of

    Page_Load()
    {
       //code
    }
    

提交回复
热议问题