PostBackUrl Not Working

  • Thread starter Thread starter Uriah Piddle
  • Start date Start date
U

Uriah Piddle

Hi Gang,

In ASP.NET 2.0 when I click a button with a PostBackUrl in Firefox, its
posts back to itself instead of the page specified in the code. It works OK
in IE. This only happens in one project. In other projects the problem is
not there. I can't figure it out. Does know what would do this?

Thanks.

Steve
 
as the postbackurl requires javascript, check for a scripting error on
the page. the first script error cancels all scripts (just like IE)

-- bruce (sqlwork.com)
 
Thanks Bruce,

I put this block of code in the Global.asx after reading an article about
coding standards and then sort of forgot about it. When I commented it out,
the problem went away.

void Application_PreSendRequestHeaders(object s, EventArgs e)
{
if (Array.IndexOf(Request.AcceptTypes,"application/xhtml+xml") > -1)
{
Response.ContentType = "application/xhtml+xml";
}
}
 
Back
Top