ASP.Net - 项目/产品的多个类别 [英] ASP.Net - Multiple Categories For an Item/Product

查看:80
本文介绍了ASP.Net - 项目/产品的多个类别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是ASP.Net的新手



我的老板指派我开发一个显示新闻的网站。这是一个非常简单的项目,除了这个



1.新闻可以是多个类别。

2.新闻可以有多个新闻图片。





问题是,我可以插入/删除/更新单个类别和单个新闻图片,但我不喜欢知道如何插入/删除/更新多个类别和多个新闻图像。





请用SQL给我一个ASP.Net项目服务器数据库备份,所以我能理解。





我将非常感谢你/

解决方案

Quote:

我是ASP.Net的新手

这不是提及,因为它不是犯罪。我们都有一天。

Quote:

请给我一个带有SQL Server数据库备份的ASP.Net项目,所以我能理解。

对不起,你在这里找不到。





现在根据你的问题,创建表格作为新闻,类别,图像,News_Categories和News_Images。前三个表用作具有唯一条目的主表,接下来的两个表将具有每个具有相关类别和图像的新闻的链接。编写代码来实现并发布您所获得的内容直到此处。这样就有更好的机会得到答案。


I am a newbie in ASP.Net

I am assigned by my boss to Develop a website which displays news. It is a very simple project, except this

1. A news can be of Multiple categories.
2. A news can have multiple news images.


The problem is, I can insert/delete/update single Category and single news image, but I don''t know how to insert/delete/update multiple Category and multiple news image.


Please give me an ASP.Net project with SQL Server DB Backup, so I can understand that.


I will be very thankful to you/

解决方案

Quote:

I am a newbie in ASP.Net

That''s not to be mentioned as it is not a crime. We all were someday.

Quote:

Please give me an ASP.Net project with SQL Server DB Backup, so I can understand that.

Sorry, you will not find it here.


Now as per your problem, create Tables as News, Categories, Images, News_Categories and News_Images. First three tables are used as master table with unique entries, the next two will have links for every news with associated category and image. Write code to implement things and post what you have achieved till here. That way there are better chances to get the answer.


这篇关于ASP.Net - 项目/产品的多个类别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆