Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Visual J# / April 2005

Tip: Looking for answers? Try searching our database.

Redirection in code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dubh - 07 Mar 2005 21:59 GMT
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
Dubh - 08 Mar 2005 17:13 GMT
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.
Dubh - 09 Mar 2005 23:07 GMT
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

> In case I didn't put enough info in the previous mail I will describe what it
> is I'm trying to do.
[quoted text clipped - 12 lines]
> 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.
Lars-Inge T?nnessen [VJ# MVP] - 12 Mar 2005 01:34 GMT
I was wondering what kind of app you where making. Web or forms. =:o)

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

You can learn more that way. =:o)

Regards,
Lars-Inge T?nnessen
Dubh - 15 Mar 2005 11:31 GMT
Web.

Brían

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

> I was wondering what kind of app you where making. Web or forms. =:o)
>
[quoted text clipped - 4 lines]
> Regards,
> Lars-Inge Tønnessen
George Birbilis [MVP J#] [9880] - 02 Apr 2005 10:15 GMT
> 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@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
........................................................................
Dubh - 18 Apr 2005 23:32 GMT
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

> > Finally figured it out.
> >
[quoted text clipped - 30 lines]
> http://www.mech.upatras.gr/~robgroup
> .........................................................................

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.