My site has a page that loads content from a web form in a subdirectory into a JQuery UI modal dialog using JQuery for the asynchronous requests. For example, "Default.aspx" loads "SubDir/UsersList.aspx" into the dialog. UsersList.aspx contains a GridView that allows the deletion of users and because the content is dynamically loaded into the dialog, I want my delete LinkButton to be asynchronous. I accomplished this using the ASP.NET ScriptManager and UpdatePanel. When the delete link is clicked, I get the following error in Visual Studio:
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 404
If I move UsersList.aspx out of the sub directory and into the same directory as Default.aspx, then it works fine. It would seem that UserList.aspx behaves as if it is in the same directory as the page that loads it which makes sense to me.
Any thoughts on how I could get this to work correctly in the subdirectory as it would be useful for project organisation reasons?