ButtonAdd.Attributes.Add("onClick", "return newWindow(test.htm);"
should b
ButtonAdd.Attributes.Add("onClick", "return newWindow('test.htm');") 'Javascript strings should be inside single/double quotes
If it still doesn't work check the following
1. As Gibs said check there are no pop-up blockers preventing a pop-up for opening.
2, Also like I said earlier make sure Client side Validation is not turned for the button control
Suresh
----- newbie wrote: ----
here is the code for newWindow() on the aspx page
function newWindow(url)
link = window.open(url,"Link",,
return true
The code for button
private sub ButtonAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs
ButtonAdd.Attributes.Add("onClick", "return newWindow(test.htm);"
end su
Why wouldn't this work