I recently ran into a problem trying to bind a string value to a HyperlinkButton's NavigateUri property that I had placed in the CellTemplate of an DataGrid. It would throw a ParserException error and fail to render the page.
After a bit of trial and error I realized it was a type mis-match. The HyperlinkButton's NavigateUri property is of type Uri and I was trying to bind a string value to it. I changed the value in my Data Source to be a type Uri (got with a Linq query) and magicaly the code is happy again.
I hope this post helps someone else with this problem.
Comments