Opening a new window in ASP.NET

IWannaWin

New Member
Hello folks,<BR><BR>Any idea about how to popup a window over hyperlink click ?<BR><BR>I was trying it in an vb application. Found some examples in JScript but none in VB :(<BR><BR>Regards,<BR><BR>nitinI still think you should use javascript on the client side to achieve these type of operations. The .aspx page is *still* compiled even if you have some client side <script's> so there's no lost in performance.<BR><BR>-->Any idea about how to popup a window over hyperlink click<--<BR><BR>Use javascript example:<BR><BR><BR><BR><% @ Page language="vb"%><BR><script runat="server"><BR>Sub Page_Load()<BR>....VB.NET code in here...<BR>End Sub<BR></script><BR><BR><html><BR><head><BR><script language="javascript"><BR>function OpenNewWindow()<BR>{<BR> window.open("another.aspx","...", "...")<BR>}<BR></script><BR></head><BR><body><BR><BR><a href="javascript: OpenNewWindow();">Click Here To Open a PopUp Window</a><BR><BR></body><BR></html><BR><BR><BR>This has not been tested but it should work.Have you tried to use the DisconnectedClient object?<BR><BR>' New instance passing in where the client is<BR>' and where you are...<BR>Dim objClient As New DisconnectedClient("Africa", US")<BR><BR>objClient.OpenWindowOnClientBrowser()<BR>objClient.ReachOut()<BR>objClient.SlapUser()<BR>objClient.Giggle(LITTLE_GIGGLE)<BR>objClient.Wave()<BR><BR>Set objClient = Nothing<BR><BR>Actually, I don't think that the DisconnectedClient class is included in Beta 2, so you'd probably need to go with Vlince's suggestion.
 
Back
Top