Open a new window

Bucky Goldstein

New Member
How do you open a new window with an asp:button control? I tried putting a taget="_blank" but that did not work. I need to have it when you click the button that it opens a new window and runs the aspx program. Right now when I click on the button I am using server.transfer to pass to another page. <BR><BR>MattDon't use an ASP Server Control for that, what you can do is use a regular HTML button with an "onclick" attribute that calls a javascript function that opens your new window.button.Attributes.Add("onclick","window.open('blablabla')");<BR>guess this must work for targeting too<BR><BR><BR>no spanxIs there a way to use this logic to add a Click event for a Label Web control?<BR><BR>Thanks
 
Back
Top