web development with c#
-
How can I open a web page(url string) from a web forms button that I've placed on my web.aspx application?
Well you can do: this.Response.Redirect(name of web page / file to download etc) or this.Server.Transfer(url or whatever - will not work when linking to a file for downloading etc.) The first one is better, but with the second, it doesnt change the url in the address bar on the browser so if you wanted to keep the full url a secret...
-
Well you can do: this.Response.Redirect(name of web page / file to download etc) or this.Server.Transfer(url or whatever - will not work when linking to a file for downloading etc.) The first one is better, but with the second, it doesnt change the url in the address bar on the browser so if you wanted to keep the full url a secret...
-
Thank you! this.Response.Redirect(name of web page) works well, but I need it to open in its own window. I think my prasing was incorrect...
Well, i asked that a short while back as well, you'll have to use a html button and in the onclick bit put: window.open("website url","one_word_id_type_thing","resizable=0,width=550,height=400") resizable=0 means you cant resize it 1 means that you can. Just thought, to open a page in a new window, and keep the web forms button, add: using System.Diagnostics; then in the button put: Process.Start("website url"); that should open it in a new window.