This topic is locked

dependent dropdown with ajax popup error

2/7/2008 6:39:57 AM
ASPRunnerPro General questions
M
mstx04 author

Hello,
I have configured a dependent dropdown and enabled 'Lookup wizard as Edit box with AJAX popup'. That gives me the following error.
[codebox]Microsoft OLE DB Provider for SQL Server error '80040e07'
Conversion failed when converting the varchar value 'ALA' to data type int.
/webapp/include/commonfunctions.asp, line 2881

[/codebox]
The error occurs in function loadSelectContent and the query that it tries to execute looks like this
[codebox]SELECT [BusinessKey],[BusinessKey] FROM [CountryLookup] WHERE [DataSourceID]=3 AND [BusinessKey]=0[/codebox]
[BusinessKey] is data type varchar, but it looks like it thinks it is an integer.
If I disable 'Lookup wizard as Edit box with AJAX popup', everything works fine and the selected value is loaded when the edit page loads.
BR,
Mikael

M
maurello 2/11/2008

I have the same problem.

Any help from the admin?

J
Jane 2/13/2008

Mikael,
it's difficult to tell you what's happening without seeing actual files.
Please publish your project on Demo Account and send to support@xlinesoft.com a URL to your pages along with instructions on reproducing this error.

I'll find what's wrong with your project inspecting it at Demo account site.

M
mstx04 author 2/13/2008

Please publish your project on Demo Account and send to support@xlinesoft.com a URL to your pages along with instructions on reproducing this error.


I will try to reserve some time to make a demo project that exposes this error.
Mikael