如何在网页中显示搜索结果 [英] how to display the search results in a webpage

查看:77
本文介绍了如何在网页中显示搜索结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好;
我是asp.net的新手,并且正在将网站开发为移动商店,除我了解其工作原理的所有内容外,其他所有功能都正常:
有一个网页允许用户搜索带有某些类别的电话,因此当用户按下搜索按钮时,我想向他显示搜索结果,如何在页面中显示这些结果,我知道如何选择表格数据库,我知道如何处理数据视图,但问题是我如何设计页面并组织搜索结果,使电话的图像以及其下的细节和某些细节显得十分重要搜索结果的页面数,我无法使用dataviews做到这一点.
在Visual Studio 2010 Ultimate中使用C#和ASp.net 4.0 Ultimate

hi all;
i am new to asp.net and i am developing a website as a mobile shop, and all things go fine except something i wnat to know how it works:
there are a webpage that allow the user to search the phones with some categories provided so when the the user press the search button i want to show him the search results ,how can i display these results in the page, i know how to select form the database and i know how to deal with the dataviews but the question is how can i design the page and organize the search results in such a way that the image of the phone and under it a little prief of its details and ofcourse their are alot of page of search results , i could not do that with dataviews.
using C# and ASp.net 4.0 with Visual studio 2010 ultimate

推荐答案

您需要购买一本非常基础的ASP.NET书籍并阅读.简而言之,您需要使用数据驱动的控件(例如gridview)来获取数据集并将其显示在页面中.如果您不知道这一点,那么您就不足以承担这项任务.总体而言,一次学习SQL,ASP.NET和C#或VB.NET是愚蠢的,您应该首先学习C#或VB,然后学习ASP.NET,然后学习SQL.当然,没有人为您的工作付钱,这听起来不像是家​​庭作业,所以您必须摆弄自己教自己.没关系,但一次只能学习一件事,因为否则您将一无所获.

我很想知道一个人,他们自己教自己没有工作或课程,怎么能负担得起VS 2010 Ultimate.我的猜测是您偷了它,或者您在工作中得到了它,并且是您的客户端"被盗.
You need to buy a very basic ASP.NET book and read it. Put simply, you need to take your data set and display it in a page, using a data driven control like a gridview. If you didn''t know that, you don''t know enough to take on this task. Overall, learning SQL, ASP.NET AND C# or VB.NET at once is stupid, you should learn C# or VB first, then learn ASP.NET, then learn SQL. Of course, no-one is paying you for your work, and it doesn''t sound like homework, so you must just be fiddling around to teach yourself. That''s fine, but learn one thing at a time, because otherwise you''ll learn nothing.

I''m interested to know how someone who is just teaching themself and doesn''t have a job or a course, can afford VS 2010 Ultimate. My guess is that you stole it, or you got it at work and it''s your ''client'' who is being stolen from.


您可以使用数据绑定控件,例如数据列表或列表视图.
you can use databound controls such as datalist or listview.


这篇关于如何在网页中显示搜索结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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