首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在C#中制作产品目录?

问如何在C#中制作产品目录?
EN

Stack Overflow用户
提问于 2010-03-09 17:01:57
回答 3查看 2.1K关注 0票数 0

我需要开发一个产品目录(大约4000种产品)应用程序,这将提供给客户的CD或DVD。目录以网页格式存在,使用PHP和MySQL。

重要:该应用程序是给客户谁可以有旧的PC,旧的系统。对于最低要求,我会安装Windows XP和Internet Explorer6(如果需要)。

代码语言:javascript
复制
I need the following features:
1 search option (after productID AND after keyword)
2 print option (by selecting multiple products)
3 shopping cart (making a list which will be sent to an email address if there is any Internet Connection on the computer)

当我被要求这样做的时候,我有两天的时间来实现一个非常基本的版本,所以我把整个网站都导出到HTML页面中,并用C#开发了一个包含嵌入式浏览器的应用程序。因此,整个网站现在是静态的,并放在CD上。到目前为止一切都很好。现在问题来了:

代码语言:javascript
复制
1. the search option was realized by parsing the html files and reading the productID or looking for keywords inside of them. Put on a CD it was extremely slow (searching in 600MB of html files). FOR THIS I WOULD NEED A SOLUTION WITH A STATIC DATABASE (USING ACCESS OR SOMETHING) TO HAVE INDEXED ROWS, SO THE SEARCH COULD BE A VERY FAST ONE.
2. the printing option was a simply call of the embeded Internet Explorer print functions. Here are two problems: 
          a) user needs IE7 for printing the website scaled (FIT TO PAGE), otherwise the edges of the page are cut down.
          b) users of this app does not have even the basic PC usage skills, so they can't set the printing settings, so there will appear in header and footer the page numbers and titles. QUESTION: can I set these settings from CSS for printing?
3. couldn't make a a shopping cart as I don't use a database, so I have static websites and content is inside the HTML.

问:对于上述问题,哪些是最好的解决方案?即使你的答案只针对一个问题,也请回答。谢谢

EN

回答 3

Stack Overflow用户

发布于 2010-03-09 19:09:15

如果您现有的应用程序是用PHP / MySQL编写的,那么使用XAMPP并将应用程序放在CD上可能比从头开始编写新应用程序更好。

在这种情况下,用户不需要在其计算机上安装.NET框架。

如果必须编写C#应用程序,请将MySQL数据库转换为xml文件,并在应用程序启动时将其加载到内存中,而不是解析html文件。

票数 2
EN

Stack Overflow用户

发布于 2010-03-09 17:10:14

如何使用javascript和cookies/url变量来传递购物车?你的嵌入式浏览器支持javascript吗?

票数 1
EN

Stack Overflow用户

发布于 2010-03-09 17:09:04

我知道这和你要做的方向完全不同,但是你能用Excel电子表格代替吗?

一张完整的目录和搜索。

一张纸用于显示/打印单个项目。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/2407725

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档