Certain search strings cause an exception when using the Editor .NET libraries and server-side proc
Certain search strings cause an exception when using the Editor .NET libraries and server-side proc
 ahanssens@cps247.com            
            
                Posts: 13Questions: 1Answers: 0
ahanssens@cps247.com            
            
                Posts: 13Questions: 1Answers: 0            
            
            
                            
                                  in Bug reports             
        I'm using Editor 1.5.0 with the .NET libraries.
Start the .NET example program and go to the page at Web/examples/simple/server-side-processing.html. In the search box, type a number. (Simply typing "1" is enough.) This will cause an invalid cast exception to be thrown by these lines in DtRequest's constructor:
            Search = new SearchT
            {
                Value = (string)search["value"],
                Regex = (Boolean)search["regex"]
            };
The problem is that search["value"] is actually an int, so it cannot be cast to a string. This change seems to make things work properly:
            Search = new SearchT
            {
                Value = search["value"].ToString(),
                Regex = (Boolean)search["regex"]
            };
This discussion has been closed.
            
Replies
Thanks! This will be included in the next release.
Allan