DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Thu, 09 Aug 2007 21:15:19 GMT,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    Jeremy Olmstead


Postbackurl Intermittently Working   
I have a page that uses a button with attribute postbackurl set to a 
different page. The page that it posts to is in a different directory 
that is secured via forms authentication. When it's clicked sometimes it 
works by redirecting to the login in page, but it usually doesn't. The 
page that comes up in Firefox basically says "The connection to the 
server was reset while the page was loading".  In Internet Explorer I get 
a similar error, but if I refresh the page it works by redirecting to the 
login page every time. Refreshing does not always work in Firefox but it 
does sometimes. Also if I try to start debugging right from the protected 
file /members/checkout.aspx it correctly redirects to the log in page. 
Any idea what I could be doing wrong? Some relevant code below...

Button Definition
-----
<asp:Button ID="checkOutButton" runat="server" CssClass="myButton" 
Text="Check Out" PostBackUrl="~/members/checkout.aspx" />
-----

Relevant web.config Section
-----
<system.web>
  <authentication mode= "Forms">
    <forms name=".ASPXAUTH" loginUrl="~/login.aspx" protection="All" />  
</authentication>
</system.web>

<location path="members">
  <system.web>
    <authorization>
      <deny users="?" />
    </authorization>
  </system.web>
</location>
-----

checkout.aspx
-----
<%@ Page Language="VB" AutoEventWireup="false" 
CodeFile="checkout.aspx.vb" Inherits="members_checkout" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    </div>
    </form>
</body>
</html>
-----

checkout.aspx.vb
-----
Partial Class members_checkout
    Inherits System.Web.UI.Page

End Class
-----
Date:Thu, 09 Aug 2007 21:15:19 GMT   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us