open in new windoiw

manxese

New Member
Hi I have the next code in a void:<BR> switch(Engine.SelectedItem.Value.ToString()) {<BR> case "1": Response.Redirect("http://www.google.com/search?q=" + SearchText.Text);<BR> break;<BR> case "2": Response.Redirect("http://www.altavista.digital.com/cgi-bin/query?pg=q&what=web&fmt=.&q=" + SearchText.Text);<BR> break;<BR> case "3": Response.Redirect("http://av.yahoo.com/bin/query?p=" + SearchText.Text);<BR> break;<BR> case "4": Response.Redirect("http://www.hotbot.com/?SW=web&SM=MC&MT=" + SearchText.Text);<BR> break;<BR> case "5": Response.Redirect("http://www.lycos.com/cgi-bin/pursuit?adv=%26adv%3B&cat=lycos&matchmode=and&query=" + SearchText.Text);<BR> break;<BR><BR>How can i open the pages in a new window?<BR>you canYou can't. response.redirect is an asp.net server side function. To open a new window you need to use some clientside code.
 
Back
Top