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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top