Dynadot โ€” .com Transfer

ASP redirect works in firefox but not IE...

SpaceshipSpaceship
Watch

FreeBaGeL

Established Member
Impact
2
No idea why this is happeneing, it's a simple call that works perfectly in firefox but not in internet explorer... Here's the whole function that happens when the user clicks submit on a form (submits the info to the database, then redirect to a confirmation page), the redirect part is at the end.

Code:
    'PROCESS THE FORM
    sub submit(s as object, e as EventArgs)
        Dim connectionString As String = ConfigurationSettings.AppSettings("connectionString") & server.mapPath("data/fabbdata.mdb")
        Dim dbConnection As oleDbConnection = New OleDbConnection(connectionString)

        Dim myCommand as String
        dim nextmember as integer = getNext("People")  
        dim booths as Integer
        dim additionaltickets as Integer
        dim additionalreps as Integer
        dim boothfeestotal as Integer
        dim sponsorbreakfast as Integer
        dim sponsorplenary as Integer
        dim sponsorbreaks as Integer
        dim sponsorguest as Integer
        dim sponsorlunch as Integer
        dim sponsortotal as Integer
        dim baskettotal as Integer
        dim adquarter as Integer
        dim adhalf as Integer
        dim adfull as Integer
        dim covers as Integer
        dim adtotal as Integer
        dim extrabooths as Integer = 0
        dim totalcost as Integer
        
        
        'check for extra booths at $265 apiece
        If boothrep3.text <> "" Then
			extrabooths = extrabooths + 265
		End If
		
		If boothrep4.text <> "" Then
			extrabooths = extrabooths + 265
		End If
        
        
        'convert text to integers      
        If txtBooths.text = "" Then
			booths = 0
		Else
			booths = CInt(txtBooths.text)		
		End If	
			
		If txtadditionaltickets.text = "" Then
			additionaltickets = 0	
		Else	
			additionaltickets = CInt(txtadditionaltickets.text)
        End If
        
        If txtadditionalreps.text = "" Then
			additionalreps = 0
		Else
			additionalreps = CInt(txtadditionalreps.text)
		End If
         
        If txtsponsorbreakfast.text = "" Then
			sponsorbreakfast = 0
		Else       
			sponsorbreakfast = CInt(txtsponsorbreakfast.text)
		End If	
		
		If txtsponsorplenary.text = "" Then
			sponsorplenary = 0
		Else	
			sponsorplenary = CInt(txtsponsorplenary.text)
		End If		
        
        If txtsponsorbreaks.text = "" Then
			sponsorbreaks = 0
		Else
			sponsorbreaks = CInt(txtsponsorbreaks.text)
		End If		
        
        If txtsponsorguest.text = "" Then
			sponsorguest = 0
		Else
			sponsorguest = CInt(txtsponsorguest.text)
		End If		
        
        If txtsponsorlunch.text = "" Then
			sponsorlunch = 0
		Else
			sponsorlunch = CInt(txtsponsorlunch.text)
		End If	
		
		
		'basket cost
		If txtbaskettotal.text = "" Then
			baskettotal = 0
		Else
			baskettotal = CInt(txtbaskettotal.text)
		End If	
		
		
		'advertising space
		If txtadquarter.text = "" Then
			adquarter = 0
		Else
			adquarter = CInt(txtadquarter.text)
		End If	
        
        If txtadhalf.text = "" Then
			adhalf = 0
		Else
			adhalf = CInt(txtadhalf.text)
		End If	
		
		If txtadfull.text = "" Then
			adfull = 0
		Else
			adfull = CInt(txtadfull.text)
		End If	
		
		If txtadcovers.text = "" Then
			covers = 0
		Else
			covers = CInt(txtadcovers.text)
		End If	
	
        
        'calculate total booth fees
        boothfeestotal = booths + additionaltickets + additionalreps
        
        'calculate total sponsorship fees
        sponsortotal = sponsorbreakfast + sponsorplenary + sponsorbreaks + sponsorguest + sponsorlunch
        
        'calculate the advertising fees
        adtotal = adquarter + adhalf + adfull + covers
        
        'calculate the total cost
        totalcost = extrabooths + boothfeestotal + sponsortotal + baskettotal + adtotal
        
        myCommand = "INSERT INTO exhibit(company, contact, address, city, state, zip, phone, ext, fax, email, boothadjacent, boothpref1, boothpref2, boothpref3, description, decoratorinfo, decoratoraddress, decoratorcity, decoratorstate, decoratorzip, decoratorphone, decoratorext, decoratorfax, boothrep1, boothrep2, boothrep3, boothrep4, booths, additionaltickets, additionalreps, boothfeestotal, sponsorbreakfast, sponsorplenary, sponsorbreaks, sponsorguest, sponsorlunch, sponsortotal, baskettotal, quarterpage, halfpage, fullpage, covers, advertisingspace, cost) VALUES('" & company.text & _
            "','" & contact.text & _
            "','" & address.text & _
            "','" & city.text & _
            "','" & state.text & _
            "','" & zip.text & _
            "','" & phone.text & _
            "','" & ext.text & _
            "','" & fax.text & _
            "','" & email.text & _
            "','" & boothadjacent.text & _
            "','" & boothpref1.text & _
            "','" & boothpref2.text & _
            "','" & boothpref3.text & _
            "','" & description.text & _
            "','" & decoratorinfo.text & _
            "','" & decoratoraddress.text & _
            "','" & decoratorcity.text & _
            "','" & decoratorstate.text & _
            "','" & decoratorzip.text & _
            "','" & decoratorphone.text & _
            "','" & decoratorext.text & _
            "','" & decoratorfax.text & _
            "','" & boothrep1.text & _
            "','" & boothrep2.text & _
            "','" & boothrep3.text & _
            "','" & boothrep4.text & _
            "','" & booths & _
            "','" & additionaltickets & _
            "','" & additionalreps & _
            "','" & boothfeestotal & _
            "','" & sponsorbreakfast & _
            "','" & sponsorplenary & _
            "','" & sponsorbreaks & _
            "','" & sponsorguest & _
            "','" & sponsorlunch & _
            "','" & sponsortotal & _
            "','" & baskettotal & _
            "','" & adquarter & _
            "','" & adhalf & _
            "','" & adfull & _
            "','" & covers & _
            "','" & adtotal & _
            "','" & totalcost & _
            "')"
            
        Dim dbCommand As oledbCommand = New OleDbCommand(myCommand, dbConnection)
        dbConnection.open
           dbCommand.ExecuteNonQuery
        dbconnection.close
 
	confirmationPage()
    end sub
    
    sub confirmationPage()
		Response.Clear
		Response.Redirect("exhibitconfirmation.aspx")
    end sub
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
<%@ LANGUAGE="JavaScript" %>
<% Response.AddHeader("Location","exhibitconfirmation.aspx"); %>

Try that, maybe?
 
0
•••
I have to embed that in the html section of the code though, correct? I need something I can insert into the ASP script so the data will still be sent to the database.
 
0
•••
Bump....can't figure this out and have to get it working before Monday morning :\
 
0
•••
Without your database, code, browser settings, etc. it's impossible to actually test your code. However the response.redirect call does exactly what you expect in both IE and Firefox when I test it. If it's not working for you then it's either a problem with your browser configuration or a problem somewhere else in the code.

As with anything you are debugging take it back to the fundamentals. Create a page with one line of code, <%response.redirect โ€œurlโ€ %> open that page in both browsers. If it works then you know the problem is elsewhere in your code. If it doesn't you know one if your browsers is broken.
 
0
•••
Alright, well I took your advice and have been able to narrow it down a bit, but still cannot figure it out from there.

It seems to work fine in a normal capacity, but the problem arises when using the redirect after a user clicks the "submit" button in a form.

The submit button upon being clicked (onClick) calls a function called submit, which then attempts to redirect the user. It is at that point that the redirect works in mozilla and not in IE. Any idea why that might be?

I don't believe it to be the browser settings as I have tried it on multiple PCs and it is the same on all of them (works in mozilla but not IE - IE just shows a blank page).

Here is the button code:

Code:
<asp:Button OnClick="submit" Text="Submit" runat="server" />

I should also note that another similar sympton is that if you try and submit the form with incorrect input nad my error checking catches it, it reloads the page with the information I gave but the submit button will no longer work.

Here is the code for the whole file if it helps:

Code:
<%@ Control Language="VB" Debug="true" %>
<%@ import Namespace="system.data" %>
<%@ import Namespace="system.data.oledb" %>
<%Response.Buffer = false%>


<script runat="server">

    ' Insert user control code here
    ' 
          
    'PROCESS THE FORM
    sub submit(s as object, e as EventArgs)
        Dim connectionString As String = ConfigurationSettings.AppSettings("connectionString") & server.mapPath("data/fabbdata.mdb")
        Dim dbConnection As oleDbConnection = New OleDbConnection(connectionString)

        Dim myCommand as String
        dim nextmember as integer = getNext("People")  
        dim booths as Integer
        dim additionaltickets as Integer
        dim additionalreps as Integer
        dim boothfeestotal as Integer
        dim sponsorbreakfast as Integer
        dim sponsorplenary as Integer
        dim sponsorbreaks as Integer
        dim sponsorguest as Integer
        dim sponsorlunch as Integer
        dim sponsortotal as Integer
        dim baskettotal as Integer
        dim adquarter as Integer
        dim adhalf as Integer
        dim adfull as Integer
        dim covers as Integer
        dim adtotal as Integer
        dim extrabooths as Integer = 0
        dim totalcost as Integer
        
        'check the page for errors
		Dim errors As Integer = 0
		
        If Vzip.isValid = "False" Then
			errors = 1
		Elseif Vdecoratorzip.isValid = "False" Then
			errors = 1	
		Elseif Vtxtbooths.isValid = "False" Then
			errors = 1		
		Elseif Vtxtadditionaltickets.isValid = "False" Then
			errors = 1		
		Elseif Vtxtadditionalreps.isValid = "False" Then
			errors = 1		
		Elseif Vtxtsponsorbreakfast.isValid = "False" Then
			errors = 1		
		Elseif Vtxtsponsorplenary.isValid = "False" Then
			errors = 1		
		Elseif Vtxtsponsorbreaks.isValid = "False" Then
			errors = 1		
		Elseif Vtxtsponsorguest.isValid = "False" Then
			errors = 1		
		Elseif Vtxtsponsorlunch.isValid = "False" Then
			errors = 1		
		Elseif Vtxtbaskettotal.isValid = "False" Then
			errors = 1		
		Elseif Vtxtadquarter.isValid = "False" Then
			errors = 1		
		Elseif Vtxtadhalf.isValid = "False" Then
			errors = 1		
		Elseif Vtxtadfull.isValid = "False" Then
			errors = 1		
		Elseif Vtxtadcovers.isValid = "False" Then
			errors = 1																				
		End If
	
		response.write(errors)
        
        'if no errors, parse the form, load database and go to confirmation page, otherwise make the user fix it
        If errors = 0
			'check for extra booths at $265 apiece
			If boothrep3.text <> "" Then
				extrabooths = extrabooths + 265
			End If
			
			If boothrep4.text <> "" Then
				extrabooths = extrabooths + 265
			End If
	        
	        
			'convert text to integers      
			If txtBooths.text = "" Then
				booths = 0
			Else
				booths = CInt(txtBooths.text)		
			End If	
				
			If txtadditionaltickets.text = "" Then
				additionaltickets = 0	
			Else	
				additionaltickets = CInt(txtadditionaltickets.text)
			End If
	        
			If txtadditionalreps.text = "" Then
				additionalreps = 0
			Else
				additionalreps = CInt(txtadditionalreps.text)
			End If
	         
			If txtsponsorbreakfast.text = "" Then
				sponsorbreakfast = 0
			Else       
				sponsorbreakfast = CInt(txtsponsorbreakfast.text)
			End If	
			
			If txtsponsorplenary.text = "" Then
				sponsorplenary = 0
			Else	
				sponsorplenary = CInt(txtsponsorplenary.text)
			End If		
	        
			If txtsponsorbreaks.text = "" Then
				sponsorbreaks = 0
			Else
				sponsorbreaks = CInt(txtsponsorbreaks.text)
			End If		
	        
			If txtsponsorguest.text = "" Then
				sponsorguest = 0
			Else
				sponsorguest = CInt(txtsponsorguest.text)
			End If		
	        
			If txtsponsorlunch.text = "" Then
				sponsorlunch = 0
			Else
				sponsorlunch = CInt(txtsponsorlunch.text)
			End If	
			
			
			'basket cost
			If txtbaskettotal.text = "" Then
				baskettotal = 0
			Else
				baskettotal = CInt(txtbaskettotal.text)
			End If	
			
			
			'advertising space
			If txtadquarter.text = "" Then
				adquarter = 0
			Else
				adquarter = CInt(txtadquarter.text)
			End If	
	        
			If txtadhalf.text = "" Then
				adhalf = 0
			Else
				adhalf = CInt(txtadhalf.text)
			End If	
			
			If txtadfull.text = "" Then
				adfull = 0
			Else
				adfull = CInt(txtadfull.text)
			End If	
			
			If txtadcovers.text = "" Then
				covers = 0
			Else
				covers = CInt(txtadcovers.text)
			End If	
		
	        
			'calculate total booth fees
			boothfeestotal = booths + additionaltickets + additionalreps
	        
			'calculate total sponsorship fees
			sponsortotal = sponsorbreakfast + sponsorplenary + sponsorbreaks + sponsorguest + sponsorlunch
	        
			'calculate the advertising fees
			adtotal = adquarter + adhalf + adfull + covers
	        
			'calculate the total cost
			totalcost = extrabooths + boothfeestotal + sponsortotal + baskettotal + adtotal
          
			myCommand = "INSERT INTO exhibit(company, contact, address, city, state, zip, phone, ext, fax, email, boothadjacent, boothpref1, boothpref2, boothpref3, description, decoratorinfo, decoratoraddress, decoratorcity, decoratorstate, decoratorzip, decoratorphone, decoratorext, decoratorfax, boothrep1, boothrep2, boothrep3, boothrep4, booths, additionaltickets, additionalreps, boothfeestotal, sponsorbreakfast, sponsorplenary, sponsorbreaks, sponsorguest, sponsorlunch, sponsortotal, baskettotal, quarterpage, halfpage, fullpage, covers, advertisingspace, cost) VALUES('" & company.text & _
				"','" & contact.text & _
				"','" & address.text & _
				"','" & city.text & _
				"','" & state.text & _
				"','" & zip.text & _
				"','" & phone.text & _
				"','" & ext.text & _
				"','" & fax.text & _
				"','" & email.text & _
				"','" & boothadjacent.text & _
				"','" & boothpref1.text & _
				"','" & boothpref2.text & _
				"','" & boothpref3.text & _
				"','" & description.text & _
				"','" & decoratorinfo.text & _
				"','" & decoratoraddress.text & _
				"','" & decoratorcity.text & _
				"','" & decoratorstate.text & _
				"','" & decoratorzip.text & _
				"','" & decoratorphone.text & _
				"','" & decoratorext.text & _
				"','" & decoratorfax.text & _
				"','" & boothrep1.text & _
				"','" & boothrep2.text & _
				"','" & boothrep3.text & _
				"','" & boothrep4.text & _
				"','" & booths & _
				"','" & additionaltickets & _
				"','" & additionalreps & _
				"','" & boothfeestotal & _
				"','" & sponsorbreakfast & _
				"','" & sponsorplenary & _
				"','" & sponsorbreaks & _
				"','" & sponsorguest & _
				"','" & sponsorlunch & _
				"','" & sponsortotal & _
				"','" & baskettotal & _
				"','" & adquarter & _
				"','" & adhalf & _
				"','" & adfull & _
				"','" & covers & _
				"','" & adtotal & _
				"','" & totalcost & _
				"')"
	            
			Dim dbCommand As oledbCommand = New OleDbCommand(myCommand, dbConnection)
			dbConnection.open
			dbCommand.ExecuteNonQuery
			dbconnection.close
			
			response.write("whoopdie doo mother ****errrrrrrrrrrrrrrrrrr")
			'go to confirmation page
			response.redirect("exhibitconfirmation.aspx")	
		End If	
 	
    end sub
    
    
    sub confirmationPage()
		'Response.Clear
		response.redirect("exhibitconfirmation.aspx")
    end sub
    
    
    sub view(s as object, e as eventargs)
		response.redirect("viewexhibit.aspx")
	end sub	
    
    
    function getNext(table as string) as integer
		Dim connectionString As String = ConfigurationSettings.AppSettings("connectionString") & server.mapPath("data/fabbdata.mdb")
        Dim dbConnection As oleDbConnection = New OleDbConnection(connectionString)
        Dim cmdMax As New oledbCommand("SELECT MAX(ID) FROM " & table, dbConnection)

        dim intID as integer
        dbConnection.Open()
        If cmdMax.ExecuteScalar Is DBNull.Value Then
            intID = 0
        Else
            intID = CInt(cmdMax.ExecuteScalar) + 1
        End If
        dbConnection.Close()
        return intID
    end function
   
</script>


<table cellpadding="0" cellspacing="0" width="100%">
    <tr>
        <td><font class="header"><b>Test Get Data</b></font></td>
    </tr>
</table><br>


<table cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<td align="center"><font size="3"><strong>Application for Exhibit Space</strong></font></td>
	</tr>
	<tr>
		<td align="center"><font size="2">Florida Association of Blood Banks 60th Annual Conference June 8-9, 2006</font></td>
	</tr>	
	<tr>
		<td align="center"><font size="2">Royal Pacific Resort at Universal Orlando, Florida</font></td>
	</tr>
</table>
<br>
<br>

<form runat="server">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<td><font size="2">Company Name(as it is to be printed in program):&nbsp</font></td><td><asp:TextBox size="40" id="company" runat="server" /></td>
	</tr>
	<tr>	
		<td><font size="2">Contact Name and Title:&nbsp</font></td><td><asp:TextBox size="40" id="contact" runat="server" /></td>
	</tr>	
	<tr>	
		<td><font size="2">Street Address:&nbsp</font></td><td><asp:TextBox size="40" id="address" runat="server" /></td>
	</tr>	
	<tr>	
		<td><font size="2">City:&nbsp</font></td><td><asp:TextBox size="15" id="city" runat="server" /></td>
	</tr>	
	<tr>	
		<td><font size="2">State:&nbsp</font></td><td><asp:TextBox size="2" id="state" runat="server" /></td>
	</tr>	
	<tr>
		<td>
			<font size="2">Zip Code:&nbsp</font></td><td><asp:TextBox size="10" id="zip" runat="server" />
		    <asp:RegularExpressionValidator ID="Vzip" runat="server"     
                                    ErrorMessage="Zip code must be a number." 
                                    ControlToValidate="zip"     
                                    ValidationExpression="^\d+$" />
		</td>
	</tr>	
	<tr>
		<td><font size="2">Phone:&nbsp</font></td><td><asp:TextBox size="12" id="phone" runat="server" /></td>
	</tr>	
	<tr>
		<td><font size="2">Ext:&nbsp</font></td><td><asp:TextBox size="6" id="ext" runat="server" /></td>
	</tr>	
	<tr>
		<td><font size="2">FAX:&nbsp</font></td><td><asp:TextBox size="12" id="fax" runat="server" /></td>
	</tr>	
	<tr>	
		<td><font size="2">E-Mail:&nbsp</font></td><td><asp:TextBox size="40" id="email" runat="server" /></td>
	</tr>	
	<tr>	
		<td><font size="2">Please do not place my booth adjacent to:&nbsp</font></td><td><asp:TextBox size="40" id="boothadjacent" runat="server" /></td>
	</tr>
	
	<tr>	
		<td><font size="2">&nbsp<br><br></font></td>
	</tr>	
		
	<tr>	
		<td><font size="2">Booth preference:&nbsp</font></td><td>1)&nbsp<asp:TextBox size="37" id="boothpref1" runat="server" /></td>
	</tr>	
	<tr>	
		<td><font size="2">&nbsp</font></td><td>2)&nbsp<asp:TextBox size="37" id="boothpref2" runat="server" /></td>
	</tr>	
	<tr>	
		<td><font size="2">&nbsp</font></td><td>3)&nbsp<asp:TextBox size="37" id="boothpref3" runat="server" /></td>
	</tr>
	<tr>	
		<td><font size="2">&nbsp</font></td><td><font size="2">(Booths are assigned on a first-come, first-serve basis)</font></td>
	</tr>
	<tr>	
		<td><font size="2">&nbsp<br></font></td>
	</tr>
	<tr>	
		<td valign="top"><font size="2">Description of products/services<br>in 30 words or less (to be printed in program)</font></td><td><asp:TextBox rows="5" columns="30" textmode="multiline" id="description" runat="server" /></td>
	</tr>
	
	<tr>	
		<td><font size="2">&nbsp<br><br></font></td>
	</tr>
	
	<tr>	
		<td><font size="2">Send decorator information to (if different):&nbsp</font></td><td><asp:TextBox size="40" id="decoratorinfo" runat="server" /></td>
	</tr>
	<tr>	
		<td><font size="2">Street Address:&nbsp</font></td><td><asp:TextBox size="40" id="decoratoraddress" runat="server" /></td>
	</tr>	
	<tr>	
		<td><font size="2">City:&nbsp</font></td><td><asp:TextBox size="15" id="decoratorcity" runat="server" /></td>
	</tr>	
	<tr>	
		<td><font size="2">State:&nbsp</font></td><td><asp:TextBox size="2" id="decoratorstate" runat="server" /></td>
	</tr>	
	<tr>
		<td><font size="2">Zip Code:&nbsp</font></td><td><asp:TextBox size="10" id="decoratorzip" runat="server" />
		<asp:RegularExpressionValidator ID="Vdecoratorzip" runat="server"     
                                    ErrorMessage="Zip code must be a number." 
                                    ControlToValidate="decoratorzip"     
                                    ValidationExpression="^\d+$" />
        </td>                            
	</tr>	
	<tr>
		<td><font size="2">Phone:&nbsp</font></td><td><asp:TextBox size="12" id="decoratorphone" runat="server" /></td>
	</tr>	
	<tr>
		<td><font size="2">Ext:&nbsp</font></td><td><asp:TextBox size="6" id="decoratorext" runat="server" /></td>
	</tr>	
	<tr>
		<td><font size="2">FAX:&nbsp</font></td><td><asp:TextBox size="12" id="decoratorfax" runat="server" /></td>
	</tr>	
	
	<tr>	
		<td><font size="2">&nbsp<br><br></font></td>
	</tr>
	</table>
	
	<table border="0" cellpadding="0" cellspacing="0" width="100%">
	<tr>	
		<td colspan="2"><font size="2">List names of booth representatives (up to two allowed per booth). Price includes all beverages/food breaks and two luncheon functions held in exhibit hall. Additional representatives may attend for $265 each, the 2-day Conference Registration Fee.)</font></td>
	</tr>
	<tr>	
		<td><font size="2">&nbsp<br></font></td>
	</tr>
	<tr>
		<td><font size="2">&nbsp&nbsp&nbsp&nbsp&nbsp 1)&nbsp</font></td><td><asp:TextBox size="40" id="boothrep1" runat="server" /></td>
	</tr>
	<tr>
		<td><font size="2">&nbsp&nbsp&nbsp&nbsp&nbsp 2)&nbsp</font></td><td><asp:TextBox size="40" id="boothrep2" runat="server" /></td>
	</tr>
	<tr>
		<td><font size="2">&nbsp&nbsp&nbsp&nbsp&nbsp 3) ($265)&nbsp</font></td><td><asp:TextBox size="40" id="boothrep3" runat="server" /></td>
	</tr>
	<tr>
		<td><font size="2">&nbsp&nbsp&nbsp&nbsp&nbsp 4) ($265)&nbsp</font></td><td><asp:TextBox size="40" id="boothrep4" runat="server" /></td>
	</tr>
	<tr>	
		<td><font size="2">&nbsp<br><br></font></td>
	</tr>
	</table>
	
	<table border ="0" cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<td colspan="2"><font size="1">With payment by check or credit card authorization, and this application and contract, we hereby request space at the 2006 FABB Annual Conference. We agree to abide by the exhibit specifications outlined by the Florida Association of Blood Banks and to all conditions under which the exhibit area is leased to FABB. Said exhibit specification and conditions become a part of this contract. We agree to abide by specific exhibit setup and tear-down schedules as arranged by the Association. Association reserves the right to rearrange floor plan where necessary to facilitate a successful traffic flow. Full payment is enclosed. Reservations cancelled prior to April 7, 2006, will be refunded. Requests for refunds from April 8-May 5, 2006, will result in a cancellation fee of 25 percent. Requests for refunds after May 5, 2006, will be denied.</font></td>
	</tr>
	
	<tr>	
		<td><font size="2">&nbsp<br><br></font></td>
	</tr>
	
	<tr>	
		<td><font size="3"><strong>Booth Registration</strong></font></td>
	</tr>
	<tr>
		<td width="40%">
			<font size="2">&nbsp&nbsp&nbsp&nbsp&nbsp 8'x10' Booth at $1000 each:&nbsp</font></td><td>$<asp:TextBox size="10" id="txtBooths" runat="server" />
			<asp:RegularExpressionValidator ID="Vtxtbooths" runat="server"     
                                    ErrorMessage="Must be a number $1000 or greater." 
                                    ControlToValidate="txtBooths"     
                                    ValidationExpression="^\d+$" />
		</td>
	</tr>
	<tr>
		<td width="40%"><font size="2">&nbsp&nbsp&nbsp&nbsp&nbsp 1 complimentary banquet ticket:&nbsp</font></td><td><strong>&nbsp FREE</strong></td>
	</tr>
	<tr>
		<td width="40%">
			<font size="2">&nbsp&nbsp&nbsp&nbsp&nbsp Additional banquet ticket at $50 each:&nbsp</font></td><td>$<asp:TextBox size="10" id="txtadditionaltickets" runat="server" />
			<asp:RegularExpressionValidator ID="Vtxtadditionaltickets" runat="server"     
                                    ErrorMessage="Must be a number $50 or greater." 
                                    ControlToValidate="txtadditionaltickets"     
                                    ValidationExpression="^\d+$" />
		</td>
	</tr>
	<tr>
		<td width="40%">
			<font size="2">&nbsp&nbsp&nbsp&nbsp&nbsp Additional Reps at $265 each:&nbsp</font></td><td>$<asp:TextBox size="10" id="txtadditionalreps" runat="server" />
			<asp:RegularExpressionValidator ID="Vtxtadditionalreps" runat="server"     
                                    ErrorMessage="Must be a number $265 or greater." 
                                    ControlToValidate="txtadditionalreps"     
                                    ValidationExpression="^\d+$" />
		</td>
	</tr>
	<tr>
		<td width="40%"><font size="2">&nbsp&nbsp&nbsp&nbsp&nbsp <strong>Total Booth Fees</strong>:&nbsp</font></td><td>$<asp:TextBox size="10" id="txtboothfeestotal" runat="server" /></td>
	</tr>

	
	<tr>	
		<td><font size="2">&nbsp<br><br></font></td>
	</tr>
	
	
	<tr>	
		<td><font size="3"><strong>Sponsorship Opportunities</strong></font></td>
	</tr>
	<tr>
		<td width="40%">
			<font size="2">&nbsp&nbsp&nbsp&nbsp&nbsp Breakfast @ $10,000:&nbsp</font></td><td>$<asp:TextBox size="10" id="txtsponsorbreakfast" runat="server" />
			<asp:RegularExpressionValidator ID="Vtxtsponsorbreakfast" runat="server"     
                                    ErrorMessage="Must be a number $10000 or greater." 
                                    ControlToValidate="txtsponsorbreakfast"     
                                    ValidationExpression="^\d+$" />
		</td>
	</tr>
	<tr>
		<td width="40%">
			<font size="2">&nbsp&nbsp&nbsp&nbsp&nbsp Plenary Program @ $2,500:&nbsp</font></td><td>$<asp:TextBox size="10" id="txtsponsorplenary" runat="server" />
			<asp:RegularExpressionValidator ID="Vtxtsponsorplenary" runat="server"     
                                    ErrorMessage="Must be a number $2500 or greater." 
                                    ControlToValidate="txtsponsorplenary"     
                                    ValidationExpression="^\d+$" />
		</td>
	</tr>
	<tr>
		<td width="40%">
			<font size="2">&nbsp&nbsp&nbsp&nbsp&nbsp Refreshment Breaks @ $2,500:&nbsp</font></td><td>$<asp:TextBox size="10" id="txtsponsorbreaks" runat="server" />
			<asp:RegularExpressionValidator ID="Vtxtsponsorbreaks" runat="server"     
                                    ErrorMessage="Must be a number $2500 or greater." 
                                    ControlToValidate="txtsponsorbreaks"     
                                    ValidationExpression="^\d+$" />
		</td>
	</tr>
	<tr>
		<td width="40%">
			<font size="2">&nbsp&nbsp&nbsp&nbsp&nbsp Guest Speaker's Expenses @ $1,000:&nbsp</font></td><td>$<asp:TextBox size="10" id="txtsponsorguest" runat="server" />
			<asp:RegularExpressionValidator ID="Vtxtsponsorguest" runat="server"     
                                    ErrorMessage="Must be a number $1000 or greater." 
                                    ControlToValidate="txtsponsorguest"     
                                    ValidationExpression="^\d+$" />
		</td>
	</tr>
	<tr>
		<td width="40%">
			<font size="2">&nbsp&nbsp&nbsp&nbsp&nbsp Lunch @ $10,000:&nbsp</font></td><td>$<asp:TextBox size="10" id="txtsponsorlunch" runat="server" />
			<asp:RegularExpressionValidator ID="Vtxtsponsorlunch" runat="server"     
                                    ErrorMessage="Must be a number $10000 or greater." 
                                    ControlToValidate="txtsponsorlunch"     
                                    ValidationExpression="^\d+$" />
		</td>
	</tr>
	<tr>
		<td width="40%"><font size="2">&nbsp&nbsp&nbsp&nbsp&nbsp <strong>Total Sponsorships</strong>:&nbsp</font></td><td>$<asp:TextBox size="10" id="txtsponsortotal" runat="server" /></td>
	</tr>
	
	
	<tr>	
		<td><font size="2">&nbsp<br><br></font></td>
	</tr>
	
	
	<tr>	
		<td><font size="3"><strong>Baskets For Prize Drawings</strong></font></td>
	</tr>
	<tr>
		<td colspan="2"><font size="2">&nbsp&nbsp&nbsp&nbsp&nbsp Visit <A HREF="http://www.basketandfloral.com/index.htm">http://www.basketandfloral.com/index.htm</A> for basket information and sizes available</font></td>
	</tr>
	<tr>
		<td width="40%"><font size="2">&nbsp&nbsp&nbsp&nbsp&nbsp Basket Name:&nbsp</font></td><td><asp:TextBox size="40" id="basketname" runat="server" /></td>
	</tr>
	<tr>
		<td width="40%"><font size="2">&nbsp&nbsp&nbsp&nbsp&nbsp Basket Size:&nbsp</font></td><td><asp:TextBox size="40" id="basketsize" runat="server" /></td>
	</tr>
	<tr>
		<td width="40%">
			<font size="2">&nbsp&nbsp&nbsp&nbsp&nbsp <strong>Total Basket Cost</strong>:&nbsp</font></td><td>$<asp:TextBox size="10" id="txtbaskettotal" runat="server" />
			<asp:RegularExpressionValidator ID="Vtxtbaskettotal" runat="server"     
                                    ErrorMessage="Must be a number." 
                                    ControlToValidate="txtbaskettotal"     
                                    ValidationExpression="^\d+$" />
		</td>
	</tr>
	
	
	<tr>	
		<td><font size="2">&nbsp<br><br></font></td>
	</tr>
	
	
	<tr>	
		<td colspan="2"><font size="3"><strong>Reservation For Advertising Space</strong></font></td>
	</tr>
	<tr>
		<td colspan="2"><font size="2"> We agree to purchase ad space in the 2006 FABB Annual Conference Program:</font></td>
	</tr>
	<tr>
		<td width="40%">
			<font size="2">&nbsp&nbsp&nbsp&nbsp&nbsp 1/4 page, vertical (4in. w x 5in. h) - $300:&nbsp</font></td><td>$<asp:TextBox size="10" id="txtadquarter" runat="server" />
			<asp:RegularExpressionValidator ID="Vtxtadquarter" runat="server"     
                                    ErrorMessage="Must be a number $300 or greater." 
                                    ControlToValidate="txtadquarter"     
                                    ValidationExpression="^\d+$" />
		</td>
	</tr>
	<tr>
		<td width="40%">
			<font size="2">&nbsp&nbsp&nbsp&nbsp&nbsp 1/2 page, (8in. w x 5in. h) - $400:&nbsp</font></td><td>$<asp:TextBox size="10" id="txtadhalf" runat="server" />
			<asp:RegularExpressionValidator ID="Vtxtadhalf" runat="server"     
                                    ErrorMessage="Must be a number $400 or greater." 
                                    ControlToValidate="txtadhalf"     
                                    ValidationExpression="^\d+$" />
		</td>
	</tr>	
	<tr>
		<td width="40%">
			<font size="2">&nbsp&nbsp&nbsp&nbsp&nbsp Full Page, (8in. w x 11in. h) - $500:&nbsp</font></td><td>$<asp:TextBox size="10" id="txtadfull" runat="server" />
			<asp:RegularExpressionValidator ID="Vtxtadfull" runat="server"     
                                    ErrorMessage="Must be a number $500 or greater." 
                                    ControlToValidate="txtadfull"     
                                    ValidationExpression="^\d+$" />
		</td>
	</tr>	
	<tr>
		<td width="40%">
			<font size="2">&nbsp&nbsp&nbsp&nbsp&nbsp Inside Front/Back Covers - $750:&nbsp</font></td><td>$<asp:TextBox size="10" id="txtadcovers" runat="server" />
			<asp:RegularExpressionValidator ID="Vtxtadcovers" runat="server"     
                                    ErrorMessage="Must be a number $750 or greater." 
                                    ControlToValidate="txtadcovers"     
                                    ValidationExpression="^\d+$" />
		</td>
	</tr>		
	<tr>
		<td width="40%"><font size="2">&nbsp&nbsp&nbsp&nbsp&nbsp <strong>Total Advertising Cost</strong>:&nbsp</font></td><td>$<asp:TextBox size="10" id="txtadtotal" runat="server" /></td>
	</tr>
	
	
	<tr>	
		<td><font size="2">&nbsp<br><br></font></td>
	</tr>
	
	
	<tr>
		<td colspan="2"><font size="2">AD DEADLINE:  Camera-ready copy, or b/w film, with payment must be received by April 14, 2006.  Ad specifications will be e-mailed in early March.</td>
	</tr>
		
	
	<tr>	
		<td><font size="2">&nbsp<br><br></font></td>
	</tr>
	
			
	<tr>
		<td>		
			<asp:Button OnClick="submit" Text="Submit" runat="server" />
			<p><asp:Label id="label1" runat="server" /></p>
		</td>	
	</tr>
</table>	
</form>

EDIT: Arg, got the redirect working by using server.transfer instead, but the submit button is still broken when the page is refreshed due to an error.
 
0
•••
I took your control, stripped out the control header, commented out the database stuff and uploaded it to my server as an aspx file. It seems to run just fine. When you don't submit the right data it redirects to itself and the submit button still works (ie it still submitsโ€”not sure in which way it's supposed to be broken though). It works fine in IE and Firefox. It looks like the problem likely lies elsewhere.
 
0
•••
Spaceship
Domain Recover
DomainEasy โ€” Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back