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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:55:39+00:00 2026-06-06T14:55:39+00:00

After the user logged in , I need a page where each registered user

  • 0

After the user logged in , I need a page where each registered user has his own gridview and controls binded to his gridview.
The page will contain a sqldatasource binded to the gridview .

I thought about making a new table in the database for each user and in the form load to get the username after the user logged in, get the table name and replace the sqldatasource bind to his table name and the other controls fields for table name to his one.

Or is there any other way of doing this?

  • 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-06T14:55:40+00:00Added an answer on June 6, 2026 at 2:55 pm

    You definitely do not want to make a separate table for every user. How on Earth would you plan to scale that to multiple users?

    What data does the user need to see on their page? Understand that a gridview doesn’t have to map directly to a database table. It can map to any set of data. So you can store the data in your database in a way that makes sense to persist it (relational entities), then query and display it in a way that makes sense to display it.

    For example (and it’s a contrived example, since we don’t know what data you have), if you have users who need to see a list of products that they’ve ordered, then you wouldn’t create a table of products for each user. You’d probably have a table for each of the entities (User, Product, Order, etc.):

    Users
    ----------
    ID
    Name
    etc.
    
    Products
    ----------
    ID
    Name
    etc.
    
    Orders
    ----------
    ID
    UserID
    DateOrdered
    etc.
    

    And since each order would have a list of products, and each product can be on many orders, that’s a many-to-many relationship. So you might create a linking table for that relationship:

    OrderedProducts
    ----------
    OrderID
    ProductID
    

    Then, for displaying in the UI, you would query the data to get only the products ordered by that user:

    SELECT DISTINCT
      Products.ID,
      Products.Name,
      Orders.OrderedDate
    FROM
      Users
      INNER JOIN Orders ON Users.ID = Orders.UserID
      INNER JOIN OrderedProducts ON Orders.ID = OrderedProducts.OrderID
      INNER JOIN Products ON OrderedProducts.ProductID = Products.ID
    WHERE
      Users.ID = @userID
    

    This should give you a list of distinct products ordered by that user and when they were ordered. (Note that this code is free-hand, I don’t have a database handy to test it.)

    So each user would see their own specific information.

    You want to make sure that your data is modeled in a usable relational fashion. Define your entities (usually real-world things you’re representing in the data) and define tables to represent those entities. Relate them together in natural ways. Relational databases are great at handling complex queries against well-defined data. Don’t try to design your database around the nature of the display from the perspective of the user, design it around the nature of the information being stored.

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

Sidebar

Related Questions

I need to do some processing only after the user has successfully logged in
I need to load a view after an user has logged id.. To have
I need an event/events that will do the following: After user selects text/DOM element,
I have pay now form on my page and after user finishes his payment
How do I time out the session a ASP.NET MVC logged in user after
I want to INSERT VALUES after user has clicked OK on the confirmation box.
I need to either redirect user or show not authorized page according to usertype
As user logged in, he had provided his name and raw password which was
We are developing secure web application using asp.net C#. After User is logged in
I have a webpage that requires login. Once a user has logged in I

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.