Field in ado.net in web app not in correct direction in AS400

  • Thread starter Thread starter Eyal Amedi
  • Start date Start date
E

Eyal Amedi

Hello
i have a problem when i use ado.net in windows form i
getting the data correctly.
when i used the same ado.net provider in web app i
got the same data not in the correct direction (i got it
reversed).

in two options i'm using the AS400 provider: "IBMDA400"
in win form i got it correct
in web form i got it inversed.

thank
 
I dont have problem in sorting data.
I got Field reversed:
for example:
in win form I get Name field as "Eyal"
in web form I Get Name field as "layE"

Thank you
 
Hi Eyal,

Are you using RightToLeft property somewhere?
What are your regional settings?
Did you check the actual data in DataTable (by using debugger)?
 
the data in the table is correct.
i see the field in the VS enviromnment debugger
in win app the field look ok.
but in the web form i got it reversed.
i remind you that this problem happend only in the
ado provider for AS400.
 
Hi Eyal,

If data in *DataTable* (data in dataset) is correct, then your problem lies
in webcontrols.
How do you transfer data (databinding)?
What UI controls are you using?
 
this is the problem, the data in the datatable is not
correct, (RS("FieldName").value) is reversed, i see it
with the debugger.
i did not rich yet to the web control.

then data we see is befor moving it to a webcontrol.
 
This is probably an issue with your as400 provider.
It has probably a setting somewhere that reverses the fields.
Is the connection string the same for both winform and asp.net app?
Are they run both on same computer?
 
Hi Miha
1) You rights i have setting in the AS400 client
which say to reversed the fields.
this option is on, and i get the fields in
the win form OK.
2) the connection string in both app it the same !!
3) They both run on my computer, my computer is the
web server.
 
Back
Top