all groups > vj# > march 2005 >
You're in the

vj#

group:

Redirection in code


Redirection in code Dubh
3/7/2005 1:59:08 PM
vj#:
Is it possible to open a url on the client directly in code. I'm using the
<command> parameter in skmmenu but I need to open a link on the client after
processing the code called in <command>. It seems that it should be the
simplest thing to do but I just can't figure it out. Can anyone help me with
this please?

RE: Redirection in code Dubh
3/8/2005 9:13:03 AM
In case I didn't put enough info in the previous mail I will describe what it
is I'm trying to do.

Basically I'm setting up a web page to administer and monitor 200+ netware
servers with info specific to their use in a unique environment. I have set
up the main site and one of the pages is used to add these servers to a
database. Some of the servers have common purposes and they are grouped
accordingly. The groups are put in a separate database. I use this database
to create the XML file needed by skm menu. When the group from the menu is
selected a list of the servers in that group gets created in a web page and I
want that web page to appear in a 150pixels frame to the left of the main
page. IAll I then need to do is clikk on a server and it opens the
information screen etc onto the main page. I can create the server list page
no problem but I can't get it to display as I cant figure out a way to do
this in code. Can anyone point me in the right direction and include some
RE: Redirection in code Dubh
3/9/2005 3:07:03 PM
Finally figured it out.

get_Response().Redirect("myURL"); is the required code.

It was even simpler than I imagined. Now I just need to make sure it opens
in the proper frame .

Sometimes it is more help to not get any help! :-)

Brían

[quoted text, click to view]
Re: Redirection in code Lars-Inge Tønnessen [VJ# MVP]
3/11/2005 5:34:10 PM

I was wondering what kind of app you where making. Web or forms. =:o)


[quoted text, click to view]

You can learn more that way. =:o)



Regards,
Lars-Inge Tønnessen

Re: Redirection in code Dubh
3/15/2005 2:31:07 AM
Web.

Brían

[quoted text, click to view]
Re: Redirection in code George Birbilis [MVP J#] [9880]
4/2/2005 12:15:12 PM
[quoted text, click to view]

so the question was more ASP.net specific - you can ask such at www.asp.net
forums and related newsgroups too

[quoted text, click to view]

I think it is possible to set the "target" frame name (e.g. "_top" etc.)
from server side. Check the properties/methods available for the type that
"get_Response" returns in the online help of VS.net (see the help for
ASP.net)

you could also initiate the callback from the appropriate frame to the
server yourself using some Javascript to talk from frame to frame. However
that wouldn't work on clients that don't support Javascript (of course
there's also the case the client doesn't support frames either ;-p

cheers,
George

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
George Birbilis <birbilis@kagi.com>
Microsoft MVP J# for 2004, 2005
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ QuickTime controls (Delphi & ActiveX: VB, PowerPoint, .NET)
+ Plugs (InterProcess/Internet communication)
+ TranXform (VB6 form to ASP.net WebForm convertion)
http://www.kagi.com/birbilis
+ Robotics
http://www.mech.upatras.gr/~robgroup
.........................................................................

Re: Redirection in code Dubh
4/18/2005 3:32:02 PM
George,

what I ended up doing was creating an iFrame as I had more problems with a
menu control getting hidden beneath the main-frame. I also ended up writing
the jscript code progamatically to send to the page whcih in turn directs to
the proper frame. Convoluted bu tin this case quite pretty when it works! :-)

Brian

[quoted text, click to view]
AddThis Social Bookmark Button