Home All Groups Group Topic Archive Search About

Go to URL on Button_Click

Author
16 Apr 2005 7:33 AM
Glenn T. Kitchen
Hello All,
I'm having problems determining how to code going to an URL via a
button_click event.  I also feel silly for not being able to figure it out
lol.

Could someone please help; thank you!

Glenn T. Kitchen

Author
16 Apr 2005 9:15 AM
Crouchie1998
I think you mean:

System.Diagnostics.Process.Start("http://msdn.microsoft.com)

Crouchie1998
BA (HONS) MCP MCSE
Author
16 Apr 2005 10:12 AM
Glenn T. Kitchen
Crouchie,
Thank you for responding.  I may not have been clear on what I desired to
do.  Say a user is on a WebForm.aspx file I've created and finished a
registration form I made.  After that is completed successfully, I want to
simply allow a user to go to a different URL or html file within my site by
clicking a NEXT button instead of a LinkLabel.

I tried you snippet and received the following error:
===============================================
System.ComponentModel.Win32Exception: The system cannot find the file
specified at
System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo
startInfo) at System.Diagnostics.Process.Start() at
System.Diagnostics.Process.Start(ProcessStartInfo startInfo) at
System.Diagnostics.Process.Start(String fileName) at
waPc1b.LoginPc1b.Button2_Click(Object sender, EventArgs e) in C:\Documents
and Settings\Glenn
Kitchen\VSWebCache\gtkcomputerservices.com\waPc1b\LoginPc1b.aspx.vb:line 205
===============================================

I just don't want a user to have to use a linkLabel to go to the next page,
I want that to happen via a button_click event.

Thank you for your time,
Glenn

Show quoteHide quote
"Crouchie1998" <crouchie1998@spamcop.net> wrote in message
news:eM66BUmQFHA.4092@TK2MSFTNGP10.phx.gbl...
> I think you mean:
>
> System.Diagnostics.Process.Start("http://msdn.microsoft.com)
>
> Crouchie1998
> BA (HONS) MCP MCSE
>
>
Author
16 Apr 2005 10:19 AM
Cor Ligthert
Glenn,

The normal

response.redirect(url)

is used for that.

I hope this helps,

Cor
Author
16 Apr 2005 1:21 PM
Glenn T. Kitchen
Hello Cor,

Thank you greatly, that was what I was looking for exactly.  Only one
question.  Is there a way to specify the URL as a relative URL (to my site)
and does it matter with respect to time of retrieval if done that way
(relative).  If not, I'll just specify the full URL.

Thanks again, I've been looking for that unsuccessfully for quite some time
(bad keywords I guess).

Glenn


Show quoteHide quote
"Cor Ligthert" <notmyfirstn***@planet.nl> wrote in message
news:uRB0L3mQFHA.1500@TK2MSFTNGP09.phx.gbl...
> Glenn,
>
> The normal
>
> response.redirect(url)
>
> is used for that.
>
> I hope this helps,
>
> Cor
>
>
Author
16 Apr 2005 5:06 PM
Cor Ligthert
Glenn,

I assume you have to reference to the full URL, it is not using it however
redirecting it.

Cor