need to convert QueryStringParameter from string to int64
Posted on 2011-03-10
I have a gridview that is bound to a objectdatasource(ods). It uses this:
<asp:QueryStringParameter Name="customerID" QueryStringField="ID" Type="String" />
But here is the deal...the SelectMethod needs customerID to be an integer64 instead of a string.
After researching, I found that I need to do the conversion in the Selecting event of the ods.
So I added this line, but this isn't working because customerID remains as string after this line is executed:
Can someone please tell me what I need to do to change the datatype of the SelectParameter from string to int64? Thank you!