WebForm Button: How to open a webpage in different Target Window

  • Thread starter Thread starter Ben
  • Start date Start date
B

Ben

Hi All,

User click on a Web Button.
-->.....Some code to do something....
--->Then a webpage opened in different Target Window
How can I do that? What codes I should use?

Thank you,

Ben
 
Oh, I get it work:
Private Sub bntAButton_Click()
RegisterStartupScript("alert", "<SCRIPT LANGUAGE=JAVASCRIPT
runat='server'>window.open('Test.aspx?User=Aname&StartDate=05-06-2004','Repo
rt');</SCRIPT>")
End Sub

However, any other way better?

Ben
 
Back
Top