问题如何动态创建详细信息按钮 [英] Problem how to create Details button dynamically

查看:54
本文介绍了问题如何动态创建详细信息按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我是asp.net的新手,从lynda.com.cn接受了必不可少的培训.我遍历了整个培训DVD,但我没有发现PNE的东西. 很难为我解释,但是我会尝试我的韧皮.
例如,假设我们有一个真实的estae网站
我们在sql中有一个表,其中包含有关待售房屋的所有信息
我想显示有关该特定房屋的一些初始信息,然后在初始信息旁边我动态地全局放置一个详细信息"按钮,当我单击详细信息"按钮时,有关该房屋的全部信息应显示在单独的窗口中.它使用sql动态地运行,所以我不必手动执行此操作.
这种方法叫做什么,我们如何实现这种方法
我再次不是熟练的asp.net程序员,但我想成为一名熟练的asp.net程序员.
再见,如果您天气炎热又有雨天,请下雨天.

Hi guys i m bit new to asp.net and getting essential training from lynda.com.i walked through the whole training dvd but i didnt find pne thing and that was.
it would be hard to explain for me but i will try my bast.
For example suppose that we have a real estae website
we have a table in sql which has all the information s about houses that are for sale
i want to show some initial informations about that particular house and then next to initial information i wnat to placr a Details button globally dynamically and when i click on Details button then whole information about that house should be displayed in seperate window.and i want do it dynamically using sql so i dont have to do this stuff manually.
what this kind of approach is called and how can we achive this approach
once again i m not a skilled asp.net programmer but i want to become a skilled one.
bye and have a rainy day if u r having hot hot and hot day

推荐答案

一种方法是检索所有信息.按照正常方式放置标题信息,将其余信息放入样式设置为display:none的div中.然后,显示按钮将触发将div样式设置为display:block的javascript.我让您来解决细节,或者找到另一种更符合您要求的方式.
One way is to retrieve all of the information. Put the header info as per normal, put the rest in a div with style set to display:none. The display button would then trigger javascript that would set the div style to display:block. I leave you to work out the detail or find a another way that more closely suits your requirement.


这篇关于问题如何动态创建详细信息按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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