D
DM
Using the LinkButton control on a web form, how can I make the clicking of it open a new browser instance? I know how to do it with the normal anchor tag, but not this ASP.NET control.
but not this ASP.NET control.DM said:Using the LinkButton control on a web form, how can I make the clicking of it open
a new browser instance? I know how to do it with the normal anchor tag,
DM said:I would like it to call the click event handler to execute some code, then
redirect to another page, but the other page is in the new browser window.
hb said:window.
As the last line of code in click event, add code like this:
Page.RegisterClientScriptBlock("newWin", "window.open(" + url + ",
'windowName', 'args-you fill in');");