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

  • Home
  • SEARCH
  • 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 4041338
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T12:52:05+00:00 2026-05-20T12:52:05+00:00

Sorry, this is a bit of a noob question, but do you need a

  • 0

Sorry, this is a bit of a noob question, but do you need a separate datasources for each gridview if each gridview is accessing the same database but different tables in the database?

For example: I have 3 different grid views dispaying searches for 1) given ZipCode and PlanCode, 2) given ZipCode, PlanCode, and Age, 3) given State Code and Carrier Code.

Here’s the c# code-behind:

protected void Search_Zip_Plan_Age_Button_Click(object sender, EventArgs e)
{
    var _with1 = this.ZipPlan_SqlDataSource;
    _with1.SelectParameters.Clear();

    string ConnectionString = System.Configuration.ConfigurationManager.AppSettings["PriceFinderConnectionString"]
    _with1.SelectCommand = "ssp_get_zipcode_plan";
    _with1.SelectParameters.Add("ZipCode", this.ZipCode.Text);
    _with1.SelectParameters.Add("PlanCode", this.PlanCode.Text);
    _with1.SelectParameters.Add("Age", this.Age.Text);        

    _with1.SelectCommandType = SqlDataSourceCommandType.StoredProcedure;

    _with1.CancelSelectOnNullParameter = false;


    Search_Results_GridView.DataBind();
}

thanks!

  • 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-20T12:52:05+00:00Added an answer on May 20, 2026 at 12:52 pm

    You can reuse data source controls only if its the same query; otherwise, you need different data source controls.

    HTH.

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

Sidebar

Related Questions

Sorry if this is a bit of a noob question but I am still
I'm sorry if this is a bit of a C-noob question: I know I
Sorry if this question is a bit open ended, but I'm pretty new to
Sorry if this question seems a bit complex but I think its all related
Sorry if this is a noob question, I searched quite a bit and couldn't
I am sorry if this is a bit of a n00b question but for
Sorry of this appears a bit simple a question, but is there a way
Sorry if this is a bit of a starter question but I am pretty
Sorry if this is a bit random, but is it good practice to give
I'm sorry if this question is a bit basic, or if I've missed an

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.