Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7186321
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:36:25+00:00 2026-05-28T18:36:25+00:00

Goal: create webservice that will query database and return rows, then pass it to

  • 0

Goal: create webservice that will query database and return rows, then pass it to client application and insert into DataGridView.

what I have done:

    [WebMethod]
    public IEnumerable<DataRow> getTransactions(int client_id)
    {
        BankDataLINQDataContext DB = new BankDataLINQDataContext();
        IEnumerable<DataRow> query = (from u in DB.Transactions.AsEnumerable() where u.ClientID == client_id select u) as IEnumerable<DataRow>;
        return query;
    }

Problem:
1. No error before compile – error occured while i try to compile code.
2. I don’t have any idea how to pick up data in Client Application. I tried pass it by List but it didn’t work (“No Valid Source).

Please help…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T18:36:26+00:00Added an answer on May 28, 2026 at 6:36 pm

    I found it!

    Side of WebService:

        [WebMethod(Description="Pobranie operacji z konta bankowego")]
        public List<Transaction> GetTransactions(int clientID)
        {
            BankDataLINQDataContext DB = new BankDataLINQDataContext();
            List<Transaction> ListOfTrans = (from u in DB.Transactions  
                                          where u.ClientID == clientID 
                                          select u).ToList();
    
            return ListOfTrans;
    
        }
    

    side of client of WebService:

            List<Transaction> ListToView = getalltransactions.GetTransactions(ClientID).ToList();
            GridView1.DataSource = ListToView;
            GridView1.DataBind();
    

    I hope that this solution will be useful for someone.
    Thanks for all hints 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My goal is to create a Web Service client that runs in a standalone
High Level Goal: Create a single Maven Web Application project that can be used
My goal is to create a version of the app that will expire after
My goal is to create an eBook that I can read with the Mobipocket
Goal: Allow a user to authentication with Facebook into an iOS application which requires
I am developing a Windows application that will allow SharePoint administrators to copy a
My goal is to create an personal application out of my ActionScript3 video player.
My goal is to create a sqlite database and fill it with data (probably
I've created an object Chartblock that implements QGraphicsItem. My goal is to create a
My goal is create an app client server, written in C++. When the server

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.