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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:49:47+00:00 2026-06-12T07:49:47+00:00

ASP.NET controls don’t let you specify a table index to use when binding a

  • 0

ASP.NET controls don’t let you specify a table index to use when binding a data source, so your query can really only return a single table if you’re using a SqlDataSource control to handle your data. The alternative would be to run the query from the codebehind and databind manually. Either method is fine with me really, but I’m curious what (and why) the “best practice” is in this situation.

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-06-12T07:49:49+00:00Added an answer on June 12, 2026 at 7:49 am

    If you can get multiple sets of ‘needed’ data using one query, its always preferable PROVIDED you really need the data. Yout 2nd approach gives you that flexibility

    Also, using a SQLDataSource, in any real life production application would be against most best practices as it combines your DAL with your UI. There is absolutely no concept of layering when doing it in this manner and you are in effect making a 1 layer application.
    Dont use a SQLDataSource would be my suggestion.

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

Sidebar

Related Questions

When using Asp.net server controls, especially formviews, I often don't use all possible modes.
I've installed ASP.NET MVC3 and the Tools Update, but don't see any MVC3 controls
How to use forms authentication without login control.I don't want to use asp.net login
In ASP.NET MVC, we don't have controls which can do stuffs such as autocompletion
ASP.NET 4.5 introduces strongly typed data controls . From what I could gather there
I have created stylish asp.net controls and have placed the source code and dll
Why do I have to specify runat=server on all my ASP.NET controls when it
I don't know alot about ASP.Net but I'm trying to make a new control
Possible Duplicate: Using ASP.NET Controls without databinding My previous question yielded few results so
I have a asp.net page with .net controls. For a long time, many years,

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.