|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Go to URL on Button_ClickHello 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 I think you mean:
System.Diagnostics.Process.Start("http://msdn.microsoft.com) Crouchie1998 BA (HONS) MCP MCSE 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 > > Glenn,
The normal response.redirect(url) is used for that. I hope this helps, Cor 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 > > Glenn,
I assume you have to reference to the full URL, it is not using it however redirecting it. Cor
Determine if "Hide extensions for known file types" is active
Need help updating table What scope is best for defining Enum type? VB6 to VB.Net Conversion How to overload method of third party component? Selecting specific columns from a dataview? StringBuilder size question? Limiting the directories somebody can browse to..... mysql date format Simple Reflection Question |
|||||||||||||||||||||||