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 8268443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T05:53:26+00:00 2026-06-08T05:53:26+00:00

My asp.net code calls a DataAccessLayer class (SubscriberDAL.cs) that does that database query &

  • 0

My asp.net code calls a DataAccessLayer class (SubscriberDAL.cs) that does that database query & returns records. I am calling that class from my Search.aspx.cs page. The SubscriberDAL.cs method returns records in List format. How can I capture those records from my Search.aspx.cs page?

So in the code sample below, PremsubList returns a list array. How can I view those in Search.aspx.cs ?

My code is:

Search.aspx.cs:

PremCustomerMgr.GetSubscriberList(sub);  

SubscriberDAL.cs

public static List<PremSubscriber.Subscriber> GetSubscriberList(PremSubscriber.Subscriber QueryData)
{
    try
    {
        List<PremSubscriber.Subscriber> PremsubList = new List<PremSubscriber.Subscriber>();

        PremCustomerDAL.SearchSubscriberData(PremsubList, QueryData);
        return PremsubList;
    }
    catch (Exception ex)
    {
        GCException gcEx = new GCException("Exception - PremCustomerMgr.GetSubscriberList", ex);
        throw psEx;
    }
}
  • 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-06-08T05:53:28+00:00Added an answer on June 8, 2026 at 5:53 am

    You could use the result of your method call as the Datasource for a control on Search.aspx.

    For example, if you add a DataGridView to your page, you can do something like this:

    MyDataGridView.Datasource = PremCustomerMgr.GetSubscriberList(sub); 
    MyDataGridView.Databind();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an asp.net button, that when clicked calls a code behind function. The
I have JavaScript code that calls a method in ASP.NET. Basically, I have a
I've got an asp.net page that has c# code-behind that does some stuff in
We have some legacy ASP.NET code that detects if a request is secure, and
Is it possible that I reserve a asp.net code in db and load it
how would you use JQuery with asp.net Code-Behind what i mean by that: i
I'm going through some old C#.NET code in an ASP.NET application making sure that
So this code runs in an asp.net app on Linux. The code calls one
I have an asp.net page with c# code-behind. I have an event that is
I have an ASP.NET page that needs to make calls to multiple web services

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.