Hi, I made the foolish mistake of developing my first ecommerce website in ASP.NET while using a MySQL database rather than Microsoft SQL Server...now, I'm faced with finding a shopping cart and have had little success. Anyone know of any ASP.NET based shopping carts that support MySQL databases? I found this one from Page Down Tech which supports ADO.NET connections and I saw that MySQL has a connector for ADO.NET, but didn't know if this was feasible or not. http://www.pagedowntech.com/shopping_cart/storefront_highlights.asp Also...if this is a pie-in-the-sky kind of idea, can I take a PHP based shopping cart and integrate it into my ASP.NET site? Thanks in advance, Brian
I am afraid you cannot integrate PHP in ASP.NET. Your best bet can be to create custom Shopping cart. Actually i am really wondered that there is not shopping cart that supports mySQL. The .NET Framework ships with Managed Data Providers for SQL Server (System.Data. SqlClient namespaces), Oracle (System.Data.Oracle), OLE DB (System.Data.OleDb), and ODBC (System.Data.Odbc). Therefore, you can keep your application as independent as possible to the backend database, using a trick to avoid using database-specific classes, such as sqlConnection, and so on. Instead, you'll let the application decide at runtime which provider to use, depending on the connection string provided. Means, the new ADO.NET 2.0 classes allow generic data access functionality (they weren’t available in ADO.NET 1.0 or 1.1) - such as in DbConnection, DbCommand, and so on. These classes are grouped under the System.Data.Common namespace. HTH Regards
Here is the shopping cart code that I use Set up the membership schema with profiles. And add a new profile property through web.config <add name="ShoppingCart" type="kcpita.ShoppingCart" serializeAs="Binary" allowAnonymous="true" /> To add items to the shopping cart
Creating a basic shopping cart is simple to do from scratch anyway. It is the one size fits all aspect of off the shelf that makes their programming so much more complex. That said, if it has been written "correctly" with a DAL then it wouldnt be overly complex to rewrite just the data access elements in the .Net, it is recreating the SQL stored procs that is the pain in the arse part