HighTechTalks DotNet Forums  

Redirection in code

Dotnet VJSharp microsoft.public.dotnet.vjsharp


Discuss Redirection in code in the Dotnet VJSharp forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Dubh
 
Posts: n/a

Default Redirection in code - 03-07-2005 , 04:59 PM






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?

Brian

Reply With Quote
  #2  
Old   
Dubh
 
Posts: n/a

Default RE: Redirection in code - 03-08-2005 , 12:13 PM






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
sample code please. Thanks in advance for any useful help or info.

Reply With Quote
  #3  
Old   
Dubh
 
Posts: n/a

Default RE: Redirection in code - 03-09-2005 , 06:07 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

"Dubh" wrote:

Quote:
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
sample code please. Thanks in advance for any useful help or info.

Reply With Quote
  #4  
Old   
Dubh
 
Posts: n/a

Default Re: Redirection in code - 03-15-2005 , 05:31 AM



Web.

BrÃ*an

"Lars-Inge Tønnessen [VJ# MVP]" wrote:

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


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

You can learn more that way. =)



Regards,
Lars-Inge Tønnessen




Reply With Quote
  #5  
Old   
George Birbilis [MVP J#] [9880]
 
Posts: n/a

Default Re: Redirection in code - 04-02-2005 , 04:15 AM



Quote:
Finally figured it out.

get_Response().Redirect("myURL"); is the required code.
so the question was more ASP.net specific - you can ask such at www.asp.net
forums and related newsgroups too

Quote:
It was even simpler than I imagined. Now I just need to make sure it opens
in the proper frame .
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 (AT) kagi (DOT) 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
.................................................. .......................




Reply With Quote
  #6  
Old   
Dubh
 
Posts: n/a

Default Re: Redirection in code - 04-18-2005 , 06:32 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

"George Birbilis [MVP J#] [9880]" wrote:

Quote:
Finally figured it out.

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

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

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

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 (AT) kagi (DOT) 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
.................................................. .......................




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.