window.open

  • Thread starter Thread starter rbutch
  • Start date Start date
R

rbutch

hey guys i've got a question as to why something is happening.

basically building a web application, and i want to open up another .aspx form, but not
close the one i have.

so, i assign a button this.

MyButton.Attributes.Add("onclick", "window.open('MyForm.aspx');")

it works great but, it takes two clicks before it responds. i really do like the effect of the other .aspx file opening, leaving the main.aspx intact.
i was just wondering why, it takes "two-clicks".

the other thing i like is, it's minimal code.

does anyone know, why and is there a better solution, than the one i'm using?

thanks again

rik

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
 
hey guys i've got a question as to why something is happening.

rik,
Sorry to point this out but this is the wrong newsgroup: you may find better
help on microsoft.public.dotnet.framework.aspnet.

Having said that, your code works as expected for me...
 
thanks guy for the re-direct.
i made the other post.
rik

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
 
Back
Top