Not sure what is going on, very basic page here, but the button I have to redirect does nothing in IE 7, works perfectly fine in Firefox.
My event:
Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
Session("keywords") = txtKeywords.Text
Session("type") = ddlkeywords.SelectedValue
Session("imagetype") = ddlimagetype.SelectedValue
Response.Redirect("~/searc
h/image/re
sults.aspx
")
End Sub
Here's the page
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb"
Inherits="
sub_search_image_Default" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="
http://www.w3.org/1999/xhtml"
>
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<title>Image Database - Form Page</title>
<meta name="robots" content="index" />
<link rel="stylesheet" type="text/css" href="../../../elements/cs
s/imagesea
rch.css" />
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<script language="JavaScript" src="/elements/include/scr
oll_text.j
s" type="text/javascript"></s
cript>
</head>
<body bgcolor="#cccc99" style="margin:0px;">
<script language="JavaScript" src="/elements/include/men
u_array_ho
me.js" type="text/javascript"></s
cript>
<script language="JavaScript" src="/elements/include/men
u.js" type="text/javascript"></s
cript>
<form id="form1" runat="server">
<div>
<table align="center" bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="600px">
<tr>
<td width="600" bgcolor="#666633"><!--#inc
lude file="../../../elements/in
clude/navs
earch.htm"
--></td>
<td width="1" bgcolor="#996600"><br /></td>
</tr>
</table>
<table class="full-height" align="center" bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="600px">
<tr>
<td width="130" bgcolor="#cc9900" valign="top" align="center"><br />
<p align="center" class="description" ><a href="../../../partners/pr
ofile/defa
ult.asp" class="nav"><font color="#ffffff"><br />Full list of Partners</font></a></p>
</td>
<td width="10"><br /></td>
<td width="460" valign="top"><br />
<p align="center" class="title"><font color="#330099">Image Search<br /><br /></font>
</p>
<table align="center" border="0" width="95%" cellspacing="6" cellpadding="2">
<tr>
<td colspan="2">
<p class="subhead">Search for Keywords:
<asp:TextBox ID="txtKeywords" runat="server" MaxLength="50" Width="208px"></asp:TextBo
x></p>
</td>
</tr>
<tr>
<td colspan="2">
<p class="subhead">
Results Should Contain:
<asp:DropDownList ID="ddlkeywords" runat="server">
<asp:ListItem Value="all">all keywords</asp:ListItem>
<asp:ListItem Value="any">any keywords</asp:ListItem>
</asp:DropDownList>
</p>
<br />
<p class="subhead">
Images Should Be:
<asp:DropDownList ID="ddlimagetype" runat="server">
<asp:ListItem Value="Photo">photo</asp:L
istItem>
<asp:ListItem Value="Chart">graphic</asp
:ListItem>
<asp:ListItem Value="">both</asp:ListIte
m>
</asp:DropDownList>
</p>
</td>
</tr>
<tr>
<td width="50%" align="center"><br /><br />
<asp:Button ID="btnSubmit" runat="server" Text="Submit" />
<asp:Butto
n ID="btnClear" runat="server" Text="Reset" /></td>
</tr>
</table>
</td>
<td width="1" bgcolor="#996600"><br /></td>
</tr>
</table>
</div>
</form>
</body>
</html>
Start Free Trial