Simple Newby Question

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

I'm new to vb.net web developer 2005. I assume that this is the correct web site for this question, but please let me know if there
is another that is better.

I'm having difficulty finding the syntax to open a new/second browser window (from an existing one) and how to subsequently close it
via a control button.

Would someone please set me on the right path?

Thanks
 
Jeff,

I am not a .net web developer but its past 1 am here ...so if ur still
looking for your answer right now, i might be able to help
you and let you know how its done with vb.net
If it was a form, ( with vb.net ) i would have code like this:
Dim newFormScreen As Form = New FormCreatedInVB()
newFormScreen.ShowDialog()

Im new to it too..but the way i understand it so far is that you create an
instance of the "document" you have developed
and then show it.

I hope web is very simillar and u get ur answer from this... otherwise..
everyone please ignore my post and help us newbies out ;)

Thanks to everyone who has helped me out so far.

Miro
 
Jeff, Miro -

ASP.NET is a server side construct and has no (or very very limited) concept
of client side constructs. Since it runs on the server, ASP.NET would have
no way of directly opening a new browser window on the client. To accomplish
this you need to use javascript (see window.open on MSDN). Once you have
your js you have two methods of getting it to function client side. One
(recommended), write the js directly into the HTML code at design time.
Then call the js via some element's onclick attribute. Two, inject the js
into the page from the server side at runtime using (If I remember correctly)
Page.RegisterClientScriptBlock.

Enjoy,

-Boo
 
Back
Top