HttpContext.Current.Response.Redirect
(1)
System.Diagnostics.Process.Start
(1)
Page.Response.Write
(1)
Pierre
(1)
StrUrl
(1)
Jean
(1)
Humble.apprentice
(1)
Listbox
(1)

Navigate to url on button click

Asked By Jean-Pierre
19-Aug-07 07:30 AM
Hi all,


I'm having a small proble which I don't seem to be able to get solved..

I'm creating my verry first web part for MOSS which has a simple listbox and
a button.

The idea is the users selects an item and on the button click they are
redirected to a new page.  I thought it was simple enough but notthing
works...

Can anyone point me in the right direction?

thks,

to be clear (which my post wasn't)...

Asked By Jean-Pierre
19-Aug-07 07:39 AM
to be clear (which my post wasn't)... The problem I have is how to trigger
to load of the new page on the button click.
I tried this which I used in my c# forms:

System.Diagnostics.Process.Start(http://www.philcollins.com);

but that was a bit optimistic ;-)

Navigate to url on button click

Asked By humbleapprentic
20-Aug-07 06:32 AM
Jean Pierre,

Hopefully this could help you. You can say:

Page.Response.Write("" +
strUrl +

...and that will give you a pop-up (or popup) window showing the site you
want.

Let me know if that solves your question!

--
Cheers,

humble.apprentice

If you'd like to do it server side which your code post suggests, try

Asked By ChadClark
20-Aug-07 11:28 AM
If you would  like to do it server side which your code post suggests, try
HttpContext.Current.Response.Redirect('your url');
Post Question To EggHeadCafe