How to avoid Page_Load() on button click?

后端 未结 6 1726
鱼传尺愫
鱼传尺愫 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:33

    form1.Action = Request.RawUrl; 
    

    Write this code on page load then page is not post back on button click

提交回复
热议问题