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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T04:01:19+00:00 2026-06-13T04:01:19+00:00

I’m developing an e-trade web application in ASP.NET. To buy anything,first, users have to

  • 0

I’m developing an e-trade web application in ASP.NET.

To buy anything,first, users have to login. Let’s say user logged in and started to shop. When user taps to btnBuy, i’m adding this item to a collection. Everything is working well so far.

Suppose that user bought something,bought means here, i added item chosen to theBasket which contains all the items chosen,then closed the web browser. What i do want to do is to store this data to be able to retrieve this data when user comes back. So,users are able to pick up where they leave off.

So far,i think of 2 options:

1-)Use XML file to retrieve data : I can use XML file to retrieve data but,here the problem is when user deleted an item chosen,i need to parse all the XML file to delete item chose,well ,what i think it’s expensive.It makes the application very slower.

2-) Store in database : I think of storing in the database,but i think it’s expensive as well. Because,every time users pick or leave someting, i need to make connection ,request ,query etc.

Do u guys any idea,what is the best way to do that ? Am i on the right track here ?

Thank you.

  • 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-13T04:01:20+00:00Added an answer on June 13, 2026 at 4:01 am

    ASP.NET provides for such kind of storage built in solution, based on a Manager pattern: called Profile. MSDN link where to start investigate the details: http://msdn.microsoft.com/en-us/library/2y3fs9xs%28v=vs.100%29.aspx

    Profile could be accessed via System.Web.HttpContext.Current.Profile almost anywhere (where appropriate of course in n-tier). The basic object is of a type ProfileBase. But you can inject yours. And There is also ProfileProvider (some default available in APS.NET as SqlProfileProvider) or you can inject yours. Later you can change your provider to target XML, DB… as needed (e.g. in a web farm more suitable would be DB) and also use some performance hints like Cache.

    This snippet from web.config shows how to put Profile in play.

    <profile defaultProvider="ProjectProfile" inherits="MyLib.ProjectProfile, MyLib">
        <providers >
             <clear/>
            <add name="ProjectProfile" type="MyLib.ProjectProfileProvider, MyLib" />
        </providers>
    </profile>
    

    And you can even use it for not logged in users! That could be done via usage of another web.config setting:

    <anonymousIdentification enabled="true" />
    

    Which will support unique cookie for any user

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
Seemingly simple, but I cannot find anything relevant on the web. What is the
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I have a small JavaScript validation script that validates inputs based on Regex. I
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.

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.