turquoiseowl / i18n

Smart internationalization for ASP.NET
Other
556 stars 155 forks source link

Postbacks generate errors #188

Closed gitsno closed 9 years ago

gitsno commented 9 years ago

https://github.com/turquoiseowl/i18n/pull/164 added handling of postbacks that parses the postback for sections if the postback is using Ajax (update panel or script blocks), however this can lead to errors being throw by pages that are not using Ajax because the parsing does not check to see if the content is formatted for Ajax or not. If it is just a regular page with a postback but no Ajax and there is at least one pipe symbol in the page then the following line throws an unhandled FormatException

len = int.Parse(Data.Substring(replyIndex, delimiterIndex - replyIndex));

gitsno commented 9 years ago

Fixed in #189