在数据库详细信息中显示链接 [英] display link in database details

查看:73
本文介绍了在数据库详细信息中显示链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题

我想显示数据库中的数据,例如...

当我单击"101"公交车时,它们不会显示其他路线.
再次单击"Lal Darwaja",它们将显示其他信息.等等...

我有像amts一样的问题.

所以我的问题是我如何显示与链接相同的数据,也可以在单击链接时从数据库中找到一些数据.

请给我一个解决方案frnds .....

i have one problem

i want to display data from database like... this

when i click on "101" bus no they display other routes.
again click on "Lal Darwaja" they display other information. and so on...

i have a same problem like amts.

so my problem is how can i display data same as link which r also find some data from database at click on the link.

plz give me a solution frnds.....

推荐答案

首先,正确标记您的问题.您在使用MVC吗? ASP.NET?如果C#是正确的,我想它一定是其中之一.

在ASP.NET中,数据驱动的控件允许您创建链接并设置其格式.您将创建一个指向该页面ID的页面的链接,以告诉新页面显示什么. MVC是更手动的,但是存在相同的想法.
First of all, tag your question properly. Are you using MVC ? ASP.NET ? If C# is right, I guess it must be one of those.

In ASP.NET, your data driven controls allow you to create a link, and format it. You would create a link to a page that takes the id from that row, to tell the new page what to show. MVC is more manual, but the same idea exists.


ASP.NET MVC只是适合您的工具.关于这个世界,确实有好几本好书,但您也可以 google [ ^ ].这只是一个好的开始: http://weblogs.asp.net/scottgu/archive/2009/03/10/free-asp-net-mvc-ebook-tutorial.aspx [
ASP.NET MVC is just the tool for you. There are several really good books around this universe, but you can also google for it[^]. This is just a good start: http://weblogs.asp.net/scottgu/archive/2009/03/10/free-asp-net-mvc-ebook-tutorial.aspx[^]


这篇关于在数据库详细信息中显示链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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