Click to See Complete Forum and Search --> : Open A New Window In C#
johny555
March 15th, 2006, 11:51 AM
I have a little navigation bar with 5 drop down menus. Then I have a submit button that will is suppose to open in a new window that goes to a whole other link. The drop downs and the button are all asp.net (2.0). I can not find a method in C# that allows you to do this? I do not want to use javascript if at all possible. DOES ANYONE HAVE A SOLUTION?!?
GoDaddy
March 15th, 2006, 12:15 PM
you can use Response.Redirect(your aspx page);
johny555
March 15th, 2006, 02:43 PM
that doesnt open it in a new window!?!?
GoDaddy
March 15th, 2006, 03:44 PM
then .. i don't see it can be done with a Button .. maybe you should change it for a HyperLink control and in the Property Target set it as _blank. And you can also construct the Property NavigteUrl to whatever page you want to redirect the user.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.