Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Web service fetching data from a database.

ruchika_ruruchika_ru Member Posts: 52
Hi,

I have created a web service that fetches data from a database. Now, I have checked that the webservice can return both a DataTable and a DataSet object.

But, When I try to return a DataTable object onto a DataGrid inside a window application, I get an error which says "Cannot convert type 'ApplicationName.localhost.FunctionNameResponseFunctionNameResult' to 'System.Data.DataTable'"

Well, If I try to explicitly convert the object returned by the web service into a DataTable object, I receive the same error.

So eventually, I tried returning a dataSet object from the web service.

This works perfectly fine but the problem is...

I have 1 table in the dataset with the field names as "ECode", "FName" and "LName".

And I have 3 textBoxes in my windows application where I want to display the corresponding fields one by one.

Can I please be suggested as to how to display data onto each textbox and navigate it as per my convinience....???


Regards,

Ruchika[color=Green][/color]

Comments

  • Chris BrownChris Brown USAMember Posts: 4,624 ✭✭

    ___ | http://forcoder.org | free video tutorials and ebooks about ( MATLAB, C, R, PL/SQL, Assembly, PHP, Perl, Objective-C, Python, Java, C#, Visual Basic, Swift, Ruby, JavaScript, Delphi, Visual Basic .NET, Go, C++, Scratch Lua, Dart, Transact-SQL, Erlang, LabVIEW, Awk, Crystal, Clojure, Rust, Alice, VBScript, Kotlin, FoxPro, D, SAS, Lisp, ML, Scheme, ABAP, Fortran, COBOL, Julia, Scala, Apex, Bash, Hack, F#, Ada, Logo, Prolog ) ____________

Sign In or Register to comment.