2014年7月13日 星期日

[RESOLVED] How to use jquery efect on DataList control of asp.net


Hi,


I want to apply jquery effect on DataList view's Item template.For example, when i mouse hover on the template ,button and others effect will appear .




Try the code shown in the link below. But, you need to customize it to your needs. It would help you understand the technique you need to follow to accomplish the task you need to do


http://forums.asp.net/t/1654861.aspx/1



hi,


I made a test . you can try it .


















code behind:


 public partial class MyDataList : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
List list = new List(){
new Student{StudentID="1111"},new Student{StudentID="2222"},
new Student{StudentID="333"},new Student{StudentID="444"},
new Student{StudentID="555"},new Student{StudentID="666"}
};
DataList1.DataSource = list;

DataList1.DataBind();
}
}
}
public class Student
{
private string studentID;

public string StudentID
{
get { return studentID; }
set { studentID = value; }
}
private string studentName;

public string StudentName
{
get { return studentName; }
set { studentName = value; }
}
}




if I repeat the column 3, the button appears in every item of the row.


I want to show the Button on a individual item , when i repeat column...



please help me.


沒有留言:

張貼留言