How to launch another aspx web page upon button click?

后端 未结 5 1839
醉梦人生
醉梦人生 2020-12-09 18:45

I have an asp.net application, where the user would click a button and launch another page (within the same application). The issue I am facing is that the original page an

5条回答
  •  心在旅途
    2020-12-09 19:28

    Use an html button and javascript? in javascript, window.location is used to change the url location of the current window, while window.open will open a new one

    
    

    Edit: Ah, just found this: If the ID of your form tag is form1, set this attribute in your asp button

    OnClientClick="form1.target ='_blank';"
    

提交回复
热议问题