Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8508537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:11:19+00:00 2026-06-11T03:11:19+00:00

I have a simple repeater inside an UpdatePanel in my ASP.NET page. This repeater

  • 0

I have a simple repeater inside an UpdatePanel in my ASP.NET page. This repeater has a button in every RepeaterItem than, when clicked, will redirect you to another page based on the information contained in that particular RepeaterItem. Nothing out of the ordinary until that point.

In my development computer when I click one of these buttons I get a response from the ajax call that looks like

"1|#||N|M|pageRedirect||/somepage.aspx?q=bla|" 

and everything works like it should. I’m guessing the script manager handles that directive and sends the browser via JS to somepage.aspx?q=bla.

When I deploy this to my actual website (dedicated server, I really try to keep the same configuration in both enviroments, including using IIS in my development computer) this behaviour changes. When I click on one these buttons I get a 302 Found response from the server and the HTTP headers include a

Location: /somepage.aspx?q=bla

directive. What ends up happening is that the browser (FF, chome, IE) handle both pages (meaning the ajax call and they do a GET from page I’m trying to redirect to) but only the original page is rendered, so no redirection takes place. The 2nd page is loaded but in “the background” and never shown.

I’m trying to found the reason behind these 2 different behaviours. From what I could find by googling around is that this might be a configuration error (for example, see this question) but my configuration is the same in both servers.
Keep in mind that I cant mess around too much with the actual website so right now I’m trying to make my development server to act like the production server so I know where this difference is coming from and then take the proper actions.

Any help will be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T03:11:21+00:00Added an answer on June 11, 2026 at 3:11 am

    Sending a 302 redirect response back from an ajax request doesn’t work because the redirect won’t happen. So ASP.NET Ajax intercepts any redirect on the server side, converts it into a status code 200 and then it does the ‘redirect’ manually on the client side (using window.location).

    For some reason the ASP.NET Ajax (ScriptModule) isn’t converting your 302 response correctly when it’s deployed. My best guess is that it doesn’t think it’s an ajax request – to decide whether it’s an ajax request it looks to see if it contains a “X-MicrosoftAjax: Delta=true” header. Check to see if this header is being received on the server side of your deployed site.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating a simple ASP page that has a Repeater control. This repeater
This seems simple but I just cannot get it. I have an asp.net page,
say we have simple asp.net repeater, in a row we have one checkbox, one
I have a page with a repeater and a button. (quite simple) My repeater
I have an ASP.NET 2.0 page with many repeating blocks, including a third-party server-side
I have 'BasketControl' control inside of repeater: <asp:Repeater runat=server ID=rptItems> <ItemTemplate> <uc:BasketControl runat=server ID=ucBasket
I have an ASP.NET TextBox ID=txtDate in my usercontrol. It has ValidationGroup=MyUC set. Now
I have a custom search control on my page (asp.net) which contains a textbox
I have a div which which displays dynamically created tables (In a asp.net repeater
I have a < div > in my aspx page which has some notification

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.