ASP.NET Ajax requests not displayed #359
Comments
If you have a look at the implementation - https://github.com/Glimpse/Glimpse/blob/master/source/Glimpse.Core/Policy/ContentTypePolicy.cs#L91-L98you will see that at the bottom it talks about how you can add your own Once this is done, as long as web forms is setting the standard http header https://github.com/Glimpse/Glimpse/blob/master/source/Glimpse.AspNet/RequestMetadata.cs#L42-L60Everything should just work. Let me know if this fixes your issue. On Sun, May 26, 2013 at 2:04 AM, grahammendick notifications@github.comwrote:
|
Thanks for getting back to me so quickly, that worked a treat. In Glimpse.AspNet shouldn't this content type be added by default? In Web Forms UpdatePanels and partial page requests are pretty much the Ajax standard. |
Its probably worth looking at whether this should be on by default or not. I wonder if @nikmd23 has any thoughts. One thing I do know is that if we didn't want to make this the default for everyone, when we bring our Web Forms package online, it could set this. |
Thanks for taking the time to figure this out @grahammendick. While I am a little weary to make this change, I can't think of a good reason why we shouldn't. If you'd like to submit this one line pull request, we will accept it. I'd do it myself, but I feel like I'd be robbing you of your due credit for figuring all this out. I'll wait until July 1st before I take care of this on my own. |
ASP.NET Ajax requests have a content type of "text/plain" and so were filtered out by Glimpse
Thanks for giving me the chance to make this change and congrats for such a great project. |
On the web forms front, we are still interested and have some cool ideas for stuff that could be done. If you are interesting in helping out further with the work, let us know and we will make this happen. |
I am interested in helping out but I've got quite a lot going on with my own project at the moment. Perhaps after I've written my Navigation Web Forms Glimpse plug in I'll take you up on the offer, if it still stands. |
Definitely, the door is always open. Let us know how you get on. |
ASP.NET Ajax requests not displayed (Issue #359)
ASP.NET Ajax requests have a content type of "text/plain" and so were filtered out by Glimpse
Relates to the latest Glimpse.AspNet on .NET 4.5 and IIS Express.
Problem
Create an ASPX page consisting of a ScriptManager and an UpdatePanel containing a Button. Clicking the button results in a partial page request but the request information is not displayed in the Glimpse UI.
Fix?
The response, generated by .NET, from the partial page request has a content type of "text/plain" and so its data is filtered out by the ContentTypeWhiteList.
This can be fixed by adding this content type to the ContentTypeElementCollection constructor.
The text was updated successfully, but these errors were encountered: