WebGrid Crashes on Postback when column name contains "Online"

11 replies. Last post: June 2, 2011 8:57 AM by A Yousif
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
A YousifMember

We have a grid that started crashing, after the last grid update to the latest patches/fixes, which was wroking fine prior.  When we sort that column, an exception occurs.

We narrowed it down to the WebGridRequest during the FlyPostBack.  Whenever we use the word "Online" in the column name, the "On" gets replaced by the \x02 character.

<WebGrid><request id="ctl00_ctl00_ctl00_Content_View_View_PrismVirtualGridViewAirports" action="ColumnSort" columnName="isAirport^line" tblName=""/></WebGrid>

The request above is an example where the column being sorted has "isAirportOnline" as the column name.

Note that in order to submit this post, I had to change the above request to remove the special characters that are normally in the post back.  Otherwise posting this thread would fail.  So I've changed what normally is the \x03 character to '<' and '^' for \x02.

By the way, why is the '<' character, in the post request,  not itself but \x03?

[EDIT] I wanted to add that this is a boolean column.

All times are GMT -5. The time now is 11:19 PM.
Previous Next