数据绑定通常是用在给控件的属性动态赋值时,非常有用,<%#eval("bind_flied")%> ,asp.net 把它当成一个字符串来处理的。
通常在rowdatabind里面用的比较多。
eg: dim link_edit as linkbutton
if e.row.rowtype=datacontrolrowtype.datarow then
link_edit=ctype(e.row.findcontrol("linkbutton").linkbutton)
link_edit.attributes("onclick")="javascript:window.open('edit_employee.aspx?id=<%eval("employee_id")%>')"
end if

被折叠的 条评论
为什么被折叠?



