在asp.net中将转发器控件用作数据列表时的问题 [英] Problems in using repeater control as datalist in asp.net

查看:79
本文介绍了在asp.net中将转发器控件用作数据列表时的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

抱歉,我再次询问...但是我无法向您详细介绍我和我的老板..如果您的人们知道.........请回答我的问题... ...
我是Yash,刚刚加入一家开发网站的公司……我的老板给我一个任务,在转发器中使用数据列表的功能.
我直接举一个例子...来澄清...
我在sql中有一个表(Employee)...行和列如下..

emp_id 名称 工资
1 yash 20000
2 tejas 10000
3 rahul 10000
4 keyur 15000

现在我必须显示以下数据...但是使用 Repeater ...

emp_id 名称

1 yash
2个tejas
3 rahul
4个键盘
工资

20000
10000
10000
15000

这意味着我需要显示前两列.之后,我必须显示
前两列下面的第三列...
请帮助我...我已经尝试了许多逻辑,包括字面量控制..但是我还是听不懂...据老板说,这只是一个简单的逻辑..
我也必须在此任务中使用 table,tr和td ...
因此,请为我提供使用 Repeater而不是数据列表控件的示例的解决方案
请帮忙...对我来说是个挑战.....
在此先感谢

Sorry iam asking it again...But i cant explain you in detail about me and my boss..Just please answer my question if you people know.........
Hi I am Yash and just joined a website devloping company......My boss Gave me a task to use the functionality of datalist in repeater..
I am directly giving an example...to clarify...
i have a table in sql (Employee)... Rows and columns are as follows..

emp_id name salary
1 yash 20000
2 tejas 10000
3 rahul 10000
4 keyur 15000

Now i have to display the above data as follows...But Using Repeater...

emp_id name

1 yash
2 tejas
3 rahul
4 keyur
salary

20000
10000
10000
15000

This means i need to to display first two columns..After which i have to display the
third column below the first two columns...
Please Help Me... i have tried Many logics including literal coltrol.. but still i cant got this... According to my boss its just a simple logic..
Also i have to use table,tr and td in this task...
So Please Provide me solution with example using Repeater and not a Datalist Control
Please help... For me its challange.....
Thanks in Advance

推荐答案

此问题应由您和您的老板解决.他希望您完成任务,评估我所假定的技能,如果不能,则需要立即告诉他并获得帮助.如果您有其他人给您答案,那么当您最终找不到帮助且一无所知时,任务将变得更加困难,失败的后果将更加深远.
This should be addressed by you and your boss. He wants you to accomplish the task, to gauge your skills I would assume, and if you can''t you need to tell him now and get help. If you have others give you the answers the tasks will be become more difficult and the failure even more profound when you eventually can''t find help and have learned nothing.


这篇关于在asp.net中将转发器控件用作数据列表时的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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