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

  • Home
  • SEARCH
  • 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 68561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T19:26:09+00:00 2026-05-10T19:26:09+00:00

I have a web form that I am attempting to implement dynamic drop down

  • 0

I have a web form that I am attempting to implement dynamic drop down lists on using the .NET AJAX 1.0 extensions. I have successfully implemented the needed bits, but have an interesting quirk.

When I select a value from my first drop down list, my call back happens and my page is updated correctly. The next value I select, I receive the following error:

Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned was: 404

Reguarless of what control I use first, the first request works and the second does not. Looking at my IIS logs, I see the following lines:

2008-10-17 14:52:14 W3SVC1 127.0.0.1 POST /Aware/Xtend/mParticipant/NewPlannedService.aspx WIN=Participant_1224255079212&Title=Participant 80 – 127.0.0.1 200 0 0

2008-10-17 14:52:20 W3SVC1 127.0.0.1 POST /Aware/mParticipant/NewPlannedService.aspx WIN=Participant_1224255079212&Title=Participant 80 – 127.0.0.1 404 0 0

As you can see my post URL has completely changed. Using Fiddler to watch the request/response, I can see this in the response from the server:

|formAction||NewPlannedService.aspx|

This is simply the name of the page that is being executed, the relative path and query string has been dropped off.

I can resolve this issue by adding the following to the end of my Async callback method:

this.Form1.Action = Request.Url.PathAndQuery 

But this seems incredibly lame and smells somewhat like moldy cheese to me. Can any one point me in the right direction?

UPDATE: Upon further inspection I discovered that NewPlannedService.aspx was not the original executing page. Page1.aspx was executing and then called Server.Transfer(‘/folder/NewPlannedService.aspx’). So the URI in the browser was http://whatever.com/Page1.aspx, but the actual page that was executing was http://whatever.com/folder/NewPlannedService.aspx

  • 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. 2026-05-10T19:26:09+00:00Added an answer on May 10, 2026 at 7:26 pm

    To solve this issue, I created a javascript file called Ajax.Server.Transfer.Fixer.js with the following code:

    var orginalFormAction = null;  //capture the current form action value function BeginRequestHandler() {   orginalFormAction = theForm.action; }  //set the form action value back to the //correct value function EndRequestHandler() {   theForm.action = orginalFormAction;   theForm._initialAction = orginalFormAction; }  function RegisterRequestHandlers() {    if (typeof (Sys) != 'undefined') {      Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);     Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(BeginRequestHandler);     Sys.Application.notifyScriptLoaded();    } }  //register request handlers after the application  //has successfully loaded. Sys.Application.add_load(RegisterRequestHandlers); 

    Then added the following line to my Page_Load event:

    protected void Page_Load(object sender, EventArgs e)     {       PageScriptManager.Scripts.Add(         new ScriptReference('~/Script/Ajax.Server.Transfer.Fixer.js')         );     } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using web forms I know that you can only have one ASP.NET form on
I have a web form that has 2 drop down menus, when the first
I have a checkbox list control on my asp.net web form that I am
I have an ASP.NET web form that has a container usercontrol that hosts several
I have a web form that is using this awesome plugin and I'm trying
I have an ASP.NET web form that uses an ASP.NET Repeater. The data source
I have a ASP.Net web form that contains both text box fields and hidden
I use ASP .Net 4 and I have a project using the form web
I have a web form that binds a DataGrid to a, normally, different data
I have a web form that has multiple ListBoxes, TextBoxes, DropDowns. If I put

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.