How to open another tab on click without refresh current page in ASP.NET Web Forms?

前端 未结 1 1819
青春惊慌失措
青春惊慌失措 2021-01-20 17:13

I want to be able to click on a button which opens another tab on click. In my case this is done using two ASP.Net controls, one asp literal with <

1条回答
  •  梦毁少年i
    2021-01-20 17:27

    This problem was fixed after I realized that I am using the wrong overload of the ScriptManager.RegisterStartupScript. I was using the method which takes the Page as first parameter (it can be found here), and after I tried to use the method which takes as parameter

    The control that is registering the client script block

    as in msdn documentation, and sent as control the LinkButton, it actually worked. The page was not reloading anymore. I hope this can help somebody with the same problem.

    0 讨论(0)
提交回复
热议问题