数据清单混乱中的工作清单 [英] joblist in datalist confusion

查看:81
本文介绍了数据清单混乱中的工作清单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在工作门户网站中,
实际上,我想通过我的服务区域查看职位描述,并且希望在数据列表中找到它
以这种格式

软件开发人员实习(MS/CS候选人)
在马萨诸塞州利特尔顿
可在今年暑期大学实习的机会.该职位是针对位于马萨诸塞州利特尔顿的IBM"Speed Team"软件开发实习计划的.我们正在寻找一支多样化的实习生团队来从事小型敏捷团队的开发工作... [更多]


当我们单击[more]时,它将在另一页上打开整个作业描述.


我在ASPX页面中使用此行来获取作业描述,

I am working on job portal in which,
Actually i want to see job description through my serch area and i want it in datalist
in this format

Software Developer Internship (MS/CS candidates)
in Littleton, MA
available for this summer college internship opportunity. This position is for the IBM "Speed Team" software development internship program based in Littleton, Massachusetts. We are seeking a diverse team of interns to work in small agile team development... [more]


and when we click on [more] it opens whole job desciption on another page.


i use this line to in aspx page to fetch job description,

<asp:Label ID="lblprloc1" Text='<%#Eval("jobdesc") %>'  runat="server">


却获取了整个描述,

所以请给我指导以做上述格式.


but it fetch whole description,

so plz give me guideline to do above format.

thanks.

推荐答案

... [更多],当我们单击[更多]时,它将在另一页上打开整个工作描述.
您需要分步实施.

1.为标签定义固定长度的文本
2.保留一份副本,剪掉多余的文字,然后附加"..."
3.现在,在带有文字的标签旁边添加一个链接按钮[更多]
4.定义链接单击,使用复制将文本从切碎"更改为完整".

您不能在此处直接使用Eval.您需要为此编写代码并进行处理.

试试吧!
... [more] and when we click on [more]it opens whole job desciption on another page.
You need to implement it in steps.

1. Define a fixed length, of text for label
2. Keeping a copy, chop off the extra text and append "..."
3. Now, add a link button next to the label with text [more]
4. Define the link click where you change the text from chopped to full using the copy.

You cannot directly use Eval here. You need to write code for it and handle.

Try!


这篇关于数据清单混乱中的工作清单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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