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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:21:35+00:00 2026-06-15T21:21:35+00:00

I am new to Entity Framework Model. I am making a shopping cart like

  • 0

I am new to Entity Framework Model. I am making a shopping cart like website where the user can select a category of products and then clicking on any one of the product category link, the next page displays the products in the corresponding category. I am using Entity Data Model and Query Strings. My code is as folloing:

    <asp:EntityDataSource ID="EDS_ProductsByCategory" runat="server" AutoGenerateWhereClause="True" 
                      ConnectionString="name=CommerceEntity"  
                      DefaultContainerName="CommerceEntity" 
                      EntitySetName="Products">
<WhereParameters>
        <asp:QueryStringParameter Name="CategoryId" QueryStringField="CatID" Type="String" />
       </WhereParameters>
</asp:EntityDataSource>

The problems is that the page is displaying all the products irrespective of the product category. When the query string is categoryID=1 or categoryID=2, it displays the same list of products, i.e, all products. I followed the tutorial on http://www.asp.net/web-forms/tutorials/tailspin-spyworks/tailspin-spyworks-part-1 to achieve what I want. Please help me, I think I am making a small mistake. Thanks in advance.

  • 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-15T21:21:36+00:00Added an answer on June 15, 2026 at 9:21 pm

    You said CategoryId was the QueryString. But in your code you are using CatId as the QueryStringField. Change it to CategoryId and it should work.

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

Sidebar

Related Questions

I am creating a new database model using Entity Framework 4.3 Code-FIrst; using Fluent
I created a new Entity Framework model from a database. This database has a
I am new to Entity Framework but im trying to model my code after
I created a new MVC application and added an Entity Framework model generated from
I had a Linq query against my Entity Framework model that was something like:
Can I use the Entity Framework Model to allow me to create a list
I've an Document object and User object, generated by Entity Framework Model Generator. I
I've read in What's New in Entity Framework 5 Beta: You can now create
I heard about the new entity framework for .net, and decided to modify my
When adding a new Entity Framework object to a database, how could one have

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.